[latex3-commits] [latex3/tagpdf] develop: use internal temp variables (0c12ae8)

github at latex-project.org github at latex-project.org
Thu Sep 19 17:57:01 CEST 2024


Repository : https://github.com/latex3/tagpdf
On branch  : develop
Link       : https://github.com/latex3/tagpdf/commit/0c12ae8d6c2d99ca47f75e38153a11764a425757

>---------------------------------------------------------------

commit 0c12ae8d6c2d99ca47f75e38153a11764a425757
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Thu Sep 19 17:57:01 2024 +0200

    use internal temp variables


>---------------------------------------------------------------

0c12ae8d6c2d99ca47f75e38153a11764a425757
 tagpdf-checks.dtx | 10 +++++-----
 tagpdf-roles.dtx  | 10 +++++-----
 2 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/tagpdf-checks.dtx b/tagpdf-checks.dtx
index 5ade1ff..3943da7 100644
--- a/tagpdf-checks.dtx
+++ b/tagpdf-checks.dtx
@@ -786,7 +786,7 @@
         \msg_error:nnn { tag } {role-missing} {#1}
       }
       {
-        \prop_get:NnNTF \g_@@_role_tags_NS_prop {#2} \l_tmpa_tl
+        \prop_get:NnNTF \g_@@_role_tags_NS_prop {#2} \l_@@_tmpa_tl
           {
             \int_compare:nNnT {\l_@@_loglevel_int} > { 0 }
               {
@@ -808,7 +808,7 @@
         \msg_error:nnn { tag } {role-missing} {#1}
       }
       {
-        \prop_get:cnNTF { g_@@_role_NS_#3_prop } {#2} \l_tmpa_tl
+        \prop_get:cnNTF { g_@@_role_NS_#3_prop } {#2} \l_@@_tmpa_tl
           {
             \int_compare:nNnT {\l_@@_loglevel_int} > { 0 }
               {
@@ -941,7 +941,7 @@
         \l_@@_tmpa_tl
       }
       {
-        \seq_clear:N \l_tmpa_seq
+        \seq_clear:N \l_@@_tmpa_seq
         \int_step_inline:nnnn
           {1}
           {1}
@@ -961,7 +961,7 @@
                 ##1
              }
              {
-               \seq_gput_right:Ne \l_tmpa_seq
+               \seq_gput_right:Ne \l_@@_tmpa_seq
                  {
                    Page##1-####1-
                    \property_ref:enn
@@ -971,7 +971,7 @@
                  }
              }
           }
-          \seq_show:N \l_tmpa_seq
+          \seq_show:N \l_@@_tmpa_seq
       }
   }
 %    \end{macrocode}
diff --git a/tagpdf-roles.dtx b/tagpdf-roles.dtx
index d29c328..bf0f938 100644
--- a/tagpdf-roles.dtx
+++ b/tagpdf-roles.dtx
@@ -1301,12 +1301,12 @@
            tag-namespace=user,
            role-namespace=, %so that we can test for it.
           #1
-         }{@@/tag-role}\l_tmpa_tl
-       \tl_if_empty:NF \l_tmpa_tl
+         }{@@/tag-role}\l_@@_tmpa_tl
+       \tl_if_empty:NF \l_@@_tmpa_tl
          {
-           \exp_args:NNno \seq_set_split:Nnn \l_tmpa_seq { / } {\l_tmpa_tl/}
-           \tl_set:Ne \l_@@_role_tag_tmpa_tl  { \seq_item:Nn \l_tmpa_seq {1} }
-           \tl_set:Ne \l_@@_role_role_tmpa_tl { \seq_item:Nn \l_tmpa_seq {2} }
+           \exp_args:NNno \seq_set_split:Nnn \l_@@_tmpa_seq { / } {\l_@@_tmpa_tl/}
+           \tl_set:Ne \l_@@_role_tag_tmpa_tl  { \seq_item:Nn \l_@@_tmpa_seq {1} }
+           \tl_set:Ne \l_@@_role_role_tmpa_tl { \seq_item:Nn \l_@@_tmpa_seq {2} }
          }
       \tl_if_empty:NT \l_@@_role_role_namespace_tmpa_tl
          {





More information about the latex3-commits mailing list.