[luatex] Glue node without spec field?
taco at elvenkind.com
Thu Jan 7 09:11:30 CET 2010
Manuel Pégourié-Gonnard wrote:
>>From the LuaTeX manual, I'm inclined to think that a glue node always have a
> spec field. However, experience shows that it's not true:
> assert(callback.register('post_linebreak_filter', function(head)
> local n = node.slide(head.list)
> assert(node.type(n.id) == 'glue', 'last node is not glue.')
> assert(n.spec, 'glue node without spec field')
> compile with luatex 0.50.0 gives an error:
> error: <\directlua >:1: glue node (subtype 9) without spec field
> Am I misunderstanding the manual, or is this a bug?
That was a bug, fixed in svn trunk now. If you don't want to compile
the trunk, you can just treat 'nil' in a spec field as equal to 0.
More information about the luatex