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}



Reply via email to