From bb99e2c94aaa32cb3635ec6e35a4dc8ca6e309ae Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Fri, 3 Jan 2014 22:43:05 +0100 Subject: [log] fix newline handling of the last status message when imitating texio.*() Issue reported by /u/eg9 on https://github.com/lualatex/luaotfload/issues/164#issuecomment-31551430 --- luaotfload-override.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/luaotfload-override.lua b/luaotfload-override.lua index b1773fa..fe70dcb 100644 --- a/luaotfload-override.lua +++ b/luaotfload-override.lua @@ -166,6 +166,8 @@ if texjob == true then statusln = function (str) if first_status == false then iowrite (kill_line) + else + iowrite "\n" end iowrite (str) end @@ -326,7 +328,9 @@ end local status_stop = function (...) if first_status == false then status_writer(...) - writeln "" + if texjob == false then + writeln "" + end end end -- cgit v1.2.3