Skip to content

Commit

Permalink
use internal temp variables
Browse files Browse the repository at this point in the history
  • Loading branch information
u-fischer committed Sep 19, 2024
1 parent 162e8f3 commit 0c12ae8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions tagpdf-checks.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
{
Expand All @@ -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 }
{
Expand Down Expand Up @@ -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}
Expand All @@ -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
Expand All @@ -971,7 +971,7 @@
}
}
}
\seq_show:N \l_tmpa_seq
\seq_show:N \l_@@_tmpa_seq
}
}
% \end{macrocode}
Expand Down
10 changes: 5 additions & 5 deletions tagpdf-roles.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down

0 comments on commit 0c12ae8

Please sign in to comment.