From 04cea3a50855b43eb3febcbc39eaf9b24ea73abc Mon Sep 17 00:00:00 2001 From: Neil Date: Fri, 9 Apr 2021 13:38:45 +1000 Subject: Add count argument to ReplaceREInFile so can modify mutiple occurrences. Fixed downloads page. --- scripts/LexGen.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'scripts/LexGen.py') diff --git a/scripts/LexGen.py b/scripts/LexGen.py index c638e9878..f40efce04 100644 --- a/scripts/LexGen.py +++ b/scripts/LexGen.py @@ -40,7 +40,8 @@ def UpdateVersionNumbers(sci, root): " Release " + sci.versionDotted) ReplaceREInFile(root / "doc/ScintillaDownload.html", r"/www.scintilla.org/([a-zA-Z]+)\d\d\d", - r"/www.scintilla.org/\g<1>" + sci.version) + r"/www.scintilla.org/\g<1>" + sci.version, + 0) UpdateLineInFile(root / "doc/index.html", ' Release version', ' Release version ' +\ -- cgit v1.2.3