From 2e28f0f00e80050b4acf82ed98c5c25eec1da099 Mon Sep 17 00:00:00 2001 From: Neil Date: Tue, 9 Mar 2021 22:31:58 +1100 Subject: Add argument to allow retrieving credits with or without links. --- scripts/ScintillaData.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts') diff --git a/scripts/ScintillaData.py b/scripts/ScintillaData.py index 7937c321e..a8cbb9872 100644 --- a/scripts/ScintillaData.py +++ b/scripts/ScintillaData.py @@ -153,7 +153,7 @@ def FindPropertyDocumentation(lexFile): del documents[name] return documents -def FindCredits(historyFile): +def FindCredits(historyFile, removeLinks=True): credits = [] stage = 0 with historyFile.open(encoding="utf-8") as f: @@ -165,7 +165,7 @@ def FindCredits(historyFile): stage = 2 if stage == 1 and l.startswith(""): credit = l[4:-5] - if "") name = end.split("<")[0] -- cgit v1.2.3