[luatex] node.copy_list() does not copy glue_spec nodes
Patrick Gundlach
patrick at gundla.ch
Thu May 3 15:35:28 CEST 2012
Hello all,
it seems that node.copy_list() does not copy the glue_spec nodes, right? Any chance for a fix?
Patrick
\documentclass{article}
\usepackage{luacode}
\begin{document}
\begin{luacode}
g1 = node.new("glue")
g1.spec = node.new("glue_spec")
g1.spec.stretch_order = 3
print(g1.spec.stretch_order) -- 3: ok
g2 = node.copy_list(g1)
g2.spec.stretch_order = 1
print(g1.spec.stretch_order) -- 1, expected 3
-- This is because both are the same:
print(g1.spec)
print(g2.spec)
-- <node nil < 86 > nil : glue_spec 0>
-- <node nil < 86 > nil : glue_spec 0>
\end{luacode}
\end{document}
More information about the luatex
mailing list