[latex3-commits] [latex3/tagpdf] develop: ignore AFref with empty value (096cc08)
github at latex-project.org
github at latex-project.org
Thu Nov 23 16:44:34 CET 2023
Repository : https://github.com/latex3/tagpdf
On branch : develop
Link : https://github.com/latex3/tagpdf/commit/096cc08f2df09970a8858a1476543e6bc06cca13
>---------------------------------------------------------------
commit 096cc08f2df09970a8858a1476543e6bc06cca13
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date: Thu Nov 23 16:44:34 2023 +0100
ignore AFref with empty value
>---------------------------------------------------------------
096cc08f2df09970a8858a1476543e6bc06cca13
CHANGELOG.md | 5 +++++
tagpdf-struct.dtx | 23 +++++++++++++----------
2 files changed, 18 insertions(+), 10 deletions(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 08bba81..3b70372 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -5,6 +5,11 @@ 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]
+
+### Changed
+ - ignore AFref key with empty value.
+
## [2023-11-19]
Version: 0.98q
diff --git a/tagpdf-struct.dtx b/tagpdf-struct.dtx
index 9f839f8..8a329bc 100644
--- a/tagpdf-struct.dtx
+++ b/tagpdf-struct.dtx
@@ -1293,16 +1293,19 @@
},
AFref .code:n = % AF property
{
- \@@_struct_add_AF:ee { \int_use:N \c at g_@@_struct_abs_int }{#1}
- \@@_struct_prop_gput:nne
- { \int_use:N \c at g_@@_struct_abs_int }
- { AF }
- {
- [
- \tl_use:c
- { g_@@_struct_\int_eval:n {\c at g_@@_struct_abs_int}_AF_tl }
- ]
- }
+ \tl_if_empty:eF {#1}
+ {
+ \@@_struct_add_AF:ee { \int_use:N \c at g_@@_struct_abs_int }{#1}
+ \@@_struct_prop_gput:nne
+ { \int_use:N \c at g_@@_struct_abs_int }
+ { AF }
+ {
+ [
+ \tl_use:c
+ { g_@@_struct_\int_eval:n {\c at g_@@_struct_abs_int}_AF_tl }
+ ]
+ }
+ }
},
,AFinline .code:n =
{
More information about the latex3-commits
mailing list.