[latex3-commits] [latex3/tagpdf] develop, main: avoid missing S key, fix latex3/tagging-project#86 (ac80101f)
github at latex-project.org
github at latex-project.org
Sat Jul 13 16:00:39 CEST 2024
Repository : https://github.com/latex3/tagpdf
On branches: develop,main
Link : https://github.com/latex3/tagpdf/commit/ac80101f121f270ba058c5bd5f38ef283c242ede
>---------------------------------------------------------------
commit ac80101f121f270ba058c5bd5f38ef283c242ede
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date: Thu Jun 20 14:47:25 2024 +0200
avoid missing S key, fix latex3/tagging-project#86
>---------------------------------------------------------------
ac80101f121f270ba058c5bd5f38ef283c242ede
CHANGELOG.md | 4 ++++
tagpdf-struct.dtx | 1 +
tagpdf-tree.dtx | 4 ++++
3 files changed, 9 insertions(+)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 465b53f6..0b3b865a 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -4,6 +4,10 @@ All notable changes to the `tagpdf` package since the
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
this project uses date-based 'snapshot' version identifiers.
+## [Unreleased]
+
+### Fixed
+ - loop with xelatex https://github.com/latex3/tagging-project/issues/86
## [2024-04-12]
### Added
diff --git a/tagpdf-struct.dtx b/tagpdf-struct.dtx
index 53a5ba6d..dfc2a4fa 100644
--- a/tagpdf-struct.dtx
+++ b/tagpdf-struct.dtx
@@ -1579,6 +1579,7 @@
{ g_@@_struct_ \l_@@_struct_stack_parent_tmpa_tl _prop}
{S}
\l_@@_tmpa_tl
+ \quark_if_no_value:NT\l_@@_tmpa_tl{\tl_set:Nn \l_@@_tmpa_tl{UNKNOWN}}
\msg_warning:nneee
{ tag }
{role-parent-child}
diff --git a/tagpdf-tree.dtx b/tagpdf-tree.dtx
index 9b643f5d..58a333dd 100644
--- a/tagpdf-tree.dtx
+++ b/tagpdf-tree.dtx
@@ -275,6 +275,10 @@
{
\l_@@_tmpa_tl
}
+% \end{macrocode}
+% Better put S back, see https://github.com/latex3/tagging-project/issues/86
+% \begin{macrocode}
+ \prop_gput:cnn { g_@@_struct_1_prop } {S}{ /StructTreeRoot }
}
% \end{macrocode}
% \end{macro}
More information about the latex3-commits
mailing list.