Cleanup
This commit is contained in:
parent
fc21983b16
commit
6571830139
@ -135,9 +135,11 @@ do
|
|||||||
end
|
end
|
||||||
texio.write'.'
|
texio.write'.'
|
||||||
if mode == 0 then return 0 end
|
if mode == 0 then return 0 end
|
||||||
|
local help = tex.gethelptext() or "Sorry, I don't know how to help in this situation.\n\z
|
||||||
|
Maybe you should try asking a human?"
|
||||||
tex.showcontext()
|
tex.showcontext()
|
||||||
if mode ~= 3 then
|
if mode ~= 3 then
|
||||||
texio.write('logfile', tex.gethelptext() .. '\n')
|
texio.write('logfile', help .. '\n')
|
||||||
return mode
|
return mode
|
||||||
end
|
end
|
||||||
repeat
|
repeat
|
||||||
@ -149,8 +151,7 @@ do
|
|||||||
if line == "" then return 3 end
|
if line == "" then return 3 end
|
||||||
local first = line:sub(1,1):upper()
|
local first = line:sub(1,1):upper()
|
||||||
if first == 'H' then
|
if first == 'H' then
|
||||||
texio.write(tex.gethelptext() or "Sorry, I don't know how to help in this situation.\n\z
|
texio.write(help)
|
||||||
Maybe you should try asking a human?")
|
|
||||||
elseif first == 'I' then
|
elseif first == 'I' then
|
||||||
line = line:sub(2)
|
line = line:sub(2)
|
||||||
tex.runlocal(function()
|
tex.runlocal(function()
|
||||||
@ -174,7 +175,7 @@ do
|
|||||||
local ret = intercept(mode, errortype)
|
local ret = intercept(mode, errortype)
|
||||||
if tex.deadcycles >= tex.maxdeadcycles then
|
if tex.deadcycles >= tex.maxdeadcycles then
|
||||||
tex.runtoks(function()
|
tex.runtoks(function()
|
||||||
tex.sprint(1, '\\shipout\\box255')
|
tex.sprint(1, '\\shipout\\box\\outputbox')
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
return ret
|
return ret
|
||||||
|
Loading…
Reference in New Issue
Block a user