From d59ca3715c3a0ef7db5d01666e53f1e63e7053fc Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Tue, 9 Apr 2019 15:32:09 +0000 Subject: avoid immediate crash for lua-only reading a pdf; patch from Hironobu Yamashita, 8 Apr 2019 20:53:29 git-svn-id: svn://tug.org/texlive/trunk@50881 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/texk/web2c/luatexdir/tex/printing.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Build/source/texk/web2c') diff --git a/Build/source/texk/web2c/luatexdir/tex/printing.c b/Build/source/texk/web2c/luatexdir/tex/printing.c index 6ad4634a1f3..58311066d58 100644 --- a/Build/source/texk/web2c/luatexdir/tex/printing.c +++ b/Build/source/texk/web2c/luatexdir/tex/printing.c @@ -416,7 +416,11 @@ void tprint(const char *sss) { char *buffer = NULL; int i = 0; - int newlinechar = new_line_char_par; + int newlinechar; + if (lua_only == 1) + newlinechar = 10; + else + newlinechar = new_line_char_par; int dolog = 0; int doterm = 0; switch (selector) { -- cgit v1.2.3