[luatex] Glue node without spec field?

Taco Hoekwater taco at elvenkind.com
Thu Jan 7 09:11:30 CET 2010



Manuel Pégourié-Gonnard wrote:
> Hi,
> 
>>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:
> 
> \directlua{%
> 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')
> end))}
> Blah.
> \bye
> 
> 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.

Best wishes,
Taco


More information about the luatex mailing list