From ce13ae5daec035205e059811ba2566058ae1dbf6 Mon Sep 17 00:00:00 2001 From: Ulrike Fischer Date: Fri, 13 Sep 2024 11:19:27 +0200 Subject: [PATCH] Fix tagging issue 696 (#1465) * remove @filesw test from property_record, latex3/tagging-project#696 * Update base/changes.txt Co-authored-by: Yukai Chou --------- Co-authored-by: Joseph Wright Co-authored-by: Yukai Chou --- base/changes.txt | 4 ++++ base/ltproperties.dtx | 15 +++++++-------- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/base/changes.txt b/base/changes.txt index 92554f96b..6adc4e13e 100644 --- a/base/changes.txt +++ b/base/changes.txt @@ -6,6 +6,10 @@ to completeness or accuracy and it contains some references to files that are not part of the distribution. ================================================================================ +2024-09-12 Ulrike Fischer + * ltproperties.dtx: remove @filesw-test in \__property_record:nn, + see https://github.com/latex3/tagging-project/issues/696 + 2024-09-11 Frank Mittelbach * lterror.dtx (subsection{Specific errors}): diff --git a/base/ltproperties.dtx b/base/ltproperties.dtx index 5b869437b..0e07a0ae0 100644 --- a/base/ltproperties.dtx +++ b/base/ltproperties.dtx @@ -30,7 +30,7 @@ %<*driver> % \fi \ProvidesFile{ltproperties.dtx} - [2024/06/29 v1.0e LaTeX Kernel (Properties)] + [2024/09/05 v1.0f LaTeX Kernel (Properties)] % \iffalse % \documentclass[full]{l3doc} @@ -560,6 +560,8 @@ % comma at the end of the list as that is easier to deal with than trying % to tidy up, and there is no real downside. % \changes{v1.0d}{2024-01-17}{Use \cs{protected@write}}% +% \changes{v1.0f}{2024-09-05}{Remove \cs{if@filesw} test to be in line with \cs{label}, +% tagging-project issue 696}% % \begin{macrocode} \cs_new_protected:Npn \property_record:nN #1#2 { \property_record:nV {#1} #2 } @@ -568,14 +570,11 @@ \cs_generate_variant:Nn \property_record:nn { nV , ee, oo } \cs_new_protected:Npn \@@_record:nn #1#2 { - \legacy_if:nT { @filesw } + \protected@write \@auxout {} { - \protected@write \@auxout {} - { - \token_to_str:N \new@label@record - {#1} - { \clist_map_function:nN {#2} \@@_record_value:n } - } + \token_to_str:N \new@label@record + {#1} + { \clist_map_function:nN {#2} \@@_record_value:n } } } \cs_generate_variant:Nn \@@_record:nn { e }