diff options
Diffstat (limited to 'macros/latex/contrib/tagpdf/tagpdf-tree.dtx')
-rw-r--r-- | macros/latex/contrib/tagpdf/tagpdf-tree.dtx | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/macros/latex/contrib/tagpdf/tagpdf-tree.dtx b/macros/latex/contrib/tagpdf/tagpdf-tree.dtx index ecbd96f04e..f8c7aa27d7 100644 --- a/macros/latex/contrib/tagpdf/tagpdf-tree.dtx +++ b/macros/latex/contrib/tagpdf/tagpdf-tree.dtx @@ -47,13 +47,13 @@ % }^^A % } % -% \date{Version 0.98, released 2022-12-22} +% \date{Version 0.98a, released 2022-12-22} % \maketitle % \begin{implementation} % \begin{macrocode} %<@@=tag> %<*header> -\ProvidesExplPackage {tagpdf-tree-code} {2022-12-22} {0.98} +\ProvidesExplPackage {tagpdf-tree-code} {2022-12-22} {0.98a} {part of tagpdf - code related to writing trees and dictionaries to the pdf} %</header> % \end{macrocode} @@ -348,9 +348,12 @@ { \prop_map_inline:Nn\g_@@_role_rolemap_prop { - \pdfdict_gput:nnx {g_@@_role/RoleMap_dict} - {##1} - {\pdf_name_from_unicode_e:n{##2}} + \tl_if_eq:nnF {##1}{##2} + { + \pdfdict_gput:nnx {g_@@_role/RoleMap_dict} + {##1} + {\pdf_name_from_unicode_e:n{##2}} + } } \pdf_object_write:nnx { @@/tree/rolemap }{dict} { @@ -418,7 +421,7 @@ \cs_new_protected:Npn \@@_tree_write_namespaces: { \pdf_version_compare:NnF < {2.0} - { + { \prop_map_inline:Nn \g_@@_role_NS_prop { \pdfdict_if_empty:nF {g_@@_role/RoleMapNS_##1_dict} |