aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2021-03-09 22:31:58 +1100
committerNeil <nyamatongwe@gmail.com>2021-03-09 22:31:58 +1100
commit2e28f0f00e80050b4acf82ed98c5c25eec1da099 (patch)
tree520459a663dd890965315c1dadc728fbf790c165
parent52914bbfaf1dc360fb2233129923b2bae748532c (diff)
downloadscintilla-mirror-2e28f0f00e80050b4acf82ed98c5c25eec1da099.tar.gz
Add argument to allow retrieving credits with or without links.
-rw-r--r--scripts/ScintillaData.py4
1 files changed, 2 insertions, 2 deletions
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("<td>"):
credit = l[4:-5]
- if "<a" in l:
+ if removeLinks and "<a" in l:
title, a, rest = credit.partition("<a href=")
urlplus, bracket, end = rest.partition(">")
name = end.split("<")[0]