[luatex] Glue node without spec field?

luigi scarso luigi.scarso at gmail.com
Thu Jan 7 03:05:18 CET 2010


On Thu, Jan 7, 2010 at 1:36 AM, Manuel Pégourié-Gonnard <mpg at elzevir.fr> wrote:
> Am I misunderstanding the manual, or is this a bug?
>
> Thanks,
> Manuel.
>
printing n subtype and spec
\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.')
   print(n.subtype,n.spec)
   assert(n.spec, 'glue node without spec field')
end))}
Blah.
\bye

gives
n.subtype=9 and n.spec=nil
I argue that if n.subtype=0  then n.spec is a glue_spec structure

(pag 152 (148 on doc) and 147 (143 on doc) of luatexref-t.pdf  0.50)

-- 
luigi



More information about the luatex mailing list