summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Gesang <phg42.2a@gmail.com>2014-01-03 22:43:05 +0100
committerPhilipp Gesang <phg42.2a@gmail.com>2014-01-03 22:43:05 +0100
commitbb99e2c94aaa32cb3635ec6e35a4dc8ca6e309ae (patch)
treef58776f8e9e616553e18198d3a4e62c87c6feeef
parent14e32b836d6b1b5c729c99de2058a6517e8cc29a (diff)
downloadluaotfload-bb99e2c94aaa32cb3635ec6e35a4dc8ca6e309ae.tar.gz
[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
-rw-r--r--luaotfload-override.lua6
1 files changed, 5 insertions, 1 deletions
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