texlive[71531] Build/source/texk/web2c/tests/fix-changefile-lines.py:

commits+ascherer at tug.org commits+ascherer at tug.org
Sat Jun 15 11:37:10 CEST 2024


Revision: 71531
          https://tug.org/svn/texlive?view=revision&revision=71531
Author:   ascherer
Date:     2024-06-15 11:37:10 +0200 (Sat, 15 Jun 2024)
Log Message:
-----------
[WEB] Conservative substitutions.

weave.ch has '[148]' at the end of an '@x' line; don't mess with this.

Modified Paths:
--------------
    trunk/Build/source/texk/web2c/tests/fix-changefile-lines.py

Modified: trunk/Build/source/texk/web2c/tests/fix-changefile-lines.py
===================================================================
--- trunk/Build/source/texk/web2c/tests/fix-changefile-lines.py	2024-06-15 09:19:04 UTC (rev 71530)
+++ trunk/Build/source/texk/web2c/tests/fix-changefile-lines.py	2024-06-15 09:37:10 UTC (rev 71531)
@@ -204,12 +204,12 @@
             # Remove potentially leading [part.section] tag.
             pattern = "\\[\\d+(\\.\\d+)?\\]"
             if re.match(pattern, text):
-                text = re.sub(pattern, "", text).strip()
+                text = re.sub(pattern, "", text, 1).strip()
 
                 # Remove potentially line number information.
                 pattern = "l\\.\\d+"
                 if re.match(pattern, text):
-                    text = re.sub(pattern, "", text)
+                    text = re.sub(pattern, "", text, 1)
 
                     # Remove potentially text comment separator.
                     pattern = " -+ "



More information about the tex-live-commits mailing list.