summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2019-04-09 15:32:09 +0000
committerKarl Berry <karl@freefriends.org>2019-04-09 15:32:09 +0000
commitd59ca3715c3a0ef7db5d01666e53f1e63e7053fc (patch)
treefa92fbc7ee3e9168e0c7b7c06ef9848df4a41b1a
parente632e29806251454904f7d17663a71c3f1dba95d (diff)
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
-rw-r--r--Build/source/texk/web2c/luatexdir/tex/printing.c6
1 files changed, 5 insertions, 1 deletions
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) {