Josef-Friedrich / nodetree

LuaTeX package to visualize node lists in a tree view.
https://www.ctan.org/pkg/nodetree
LaTeX Project Public License v1.3c
14 stars 2 forks source link

nodetree.lua (format.new_line): Do a line break after `\par{}` #19

Closed lemzwerg closed 1 year ago

lemzwerg commented 1 year ago

There is no reason that the TeX channel output is a single, extremely long line.

lemzwerg commented 1 year ago

Note that the current implementation of \par{} (or the code in nodetree.lua that creates the corresponding code) is suboptimal: If Nodetree outputs both a head: and a tail: block (as it happens for the 'hyphenate', 'ligaturing', and 'kerning' callbacks), there should be actually an empty line between the blocks, something that \par{} currently doesn't do.

Josef-Friedrich commented 1 year ago

Thank you!