diff options
author | Andreas Scherer <andreas_tex@freenet.de> | 2024-06-15 09:37:10 +0000 |
---|---|---|
committer | Andreas Scherer <andreas_tex@freenet.de> | 2024-06-15 09:37:10 +0000 |
commit | efc9844505cf57a0464ef92c0dea772bea1e299b (patch) | |
tree | 1ba6c6e80e0a4d712c0903e085ddd76cf033ca9c /Build/source | |
parent | d14bbf1a23125974e3298b68582ce9f2bf465558 (diff) |
[WEB] Conservative substitutions.
weave.ch has '[148]' at the end of an '@x' line; don't mess with this.
git-svn-id: svn://tug.org/texlive/trunk@71531 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source')
-rwxr-xr-x | Build/source/texk/web2c/tests/fix-changefile-lines.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Build/source/texk/web2c/tests/fix-changefile-lines.py b/Build/source/texk/web2c/tests/fix-changefile-lines.py index 1efad3be400..d8ebf83327f 100755 --- a/Build/source/texk/web2c/tests/fix-changefile-lines.py +++ b/Build/source/texk/web2c/tests/fix-changefile-lines.py @@ -204,12 +204,12 @@ class ChangeReader: # 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 = " -+ " |