Hi,
With the latest upload, "tex.linebreak" doesn't return an "info" table.
When running this code:
\startluacode
function test(head)
local new_head, info = tex.linebreak(node.copylist(head))
print(head, type(head), info, type(info))
if info == nil then
print "!!! info is nil !!!"
end
return head
end
nodes.tasks.appendaction("processors", "after", "test")
\stopluacode
\starttext
Hello!
\stoptext
with the latest upload I get (also note the small typo in "rigthfill"):
luatex warning > linebreak: no [ leftinit | rightinit | leftfill |
rigthfill] expected
<node : nil <= 2265 => 2353 : par vmodepar> userdata nil
nil
!!! info is nil !!!
<node : nil <= 2475 => 2299 : glue userskip> userdata nil
nil
!!! info is nil !!!
but with live.contextgarden.net I get:
luatex warning > tex: left parfill skip is gone
Underfull \hbox (badness 10000) in paragraph at lines 20--1
<node : nil <= 936 => 929 : par vmode_par> userdata
table: 0x39a050f7000 table
<node : nil <= 1529 => 1561 : glue userskip> userdata nil
nil
!!! info is nil !!!
Thanks,
-- Max
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : [email protected] / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________