Inserted glue does not inherit attributes from surrounding nodes
Could this be changed to instead inherit the attributes of the surrounding nodes?
I tried to fix that at this commit.
Note that the above commit unsets an attribute of a node P which is different between that of B and A (when P is about to be inserted between B and A). The attribute at the end of the paragraph (as before) can be used in this case.
Thanks, the fix works great with all test files I have access to :)
LuaTeX-ja often inserts nodes between other nodes, but the attributes of these nodes are set to the attributes active at the end of the paragraph instead of the attributes which were active in the place where the node get inserted. This leads to issues e.g. with lua-ul whose underlines get broken whenever two characters are separated by glue without the underline attribute. (See https://gist.github.com/zr-tex8r/53915d587773f17da10cfecdf7e47f23 for an example)
Could this be changed to instead inherit the attributes of the surrounding nodes?