diff options
Diffstat (limited to 'Master/texmf-dist/tex/lualatex/lua-ul/lua-ul.lua')
-rw-r--r-- | Master/texmf-dist/tex/lualatex/lua-ul/lua-ul.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/lualatex/lua-ul/lua-ul.lua b/Master/texmf-dist/tex/lualatex/lua-ul/lua-ul.lua index 45518e83542..204f9b400cc 100644 --- a/Master/texmf-dist/tex/lualatex/lua-ul/lua-ul.lua +++ b/Master/texmf-dist/tex/lualatex/lua-ul/lua-ul.lua @@ -25,6 +25,7 @@ local glue_t = node.id'glue' local properties = node.direct.get_properties_table() +local current_attr = node.current_attr local has_attribute = node.direct.has_attribute local set_attribute = node.direct.set_attribute local dimensions = node.direct.dimensions @@ -455,6 +456,9 @@ luatexbase.add_to_callback('pre_append_to_vlist_filter', end, 'add underlines to list') luatexbase.add_to_callback('hpack_filter', function(head, group, size, pack, dir, attr) + if group == 'align_set' or group == 'fin_row' then + attr = current_attr() + end head = todirect(head) for i = 1, #underlineattrs do local ulattr = underlineattrs[i] |