summaryrefslogtreecommitdiff
path: root/Build/source
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source')
-rwxr-xr-xBuild/source/texk/web2c/tests/fix-changefile-lines.py4
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 = " -+ "