Skip to content

Commit

Permalink
fix used-attributes handling with tables
Browse files Browse the repository at this point in the history
  • Loading branch information
u-fischer committed Mar 22, 2024
1 parent b51dc7a commit aca616c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tagpdf-struct.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -1946,6 +1946,10 @@
\tl_new:N \l_@@_attr_value_tl
\prop_new:N \g_@@_attr_objref_prop %will contain obj num of used attributes
% \end{macrocode}
% This seq is currently kept for compability with the table code.
% \begin{macrocode}
\seq_new:N\g_@@_attr_class_used_seq
% \end{macrocode}
% \end{variable}
% \subsection{Commands and keys}
% \begin{macro}{\@@_attr_new_entry:nn,role/new-attribute (setup-key), newattribute (deprecated)}
Expand Down
8 changes: 8 additions & 0 deletions tagpdf-tree.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -505,6 +505,14 @@
\cs_new_protected:Npn \@@_tree_write_classmap:
{
\tl_clear:N \l_@@_tmpa_tl
% \end{macrocode}
% We process the older sec for compability with the table code.
% TODO: check if still needed
% \begin{macrocode}
\seq_map_inline:Nn \g_@@_attr_class_used_seq
{
\prop_gput:Nnn \g_@@_attr_class_used_prop {##1}{}
}
\prop_map_inline:Nn \g_@@_attr_class_used_prop
{
\tl_put_right:Ne \l_@@_tmpa_tl
Expand Down

0 comments on commit aca616c

Please sign in to comment.