Reduce whitespace inside citation targets
This commit is contained in:
parent
f2e07cf471
commit
c8cfbc6da8
@ -86,7 +86,7 @@ class LexiconArticle:
|
||||
while link_match:
|
||||
# Identify the citation text and cited article
|
||||
cite_text = link_match.group(2) if link_match.group(2) else link_match.group(3)
|
||||
cite_title = utils.titlecase(link_match.group(3))
|
||||
cite_title = utils.titlecase(re.sub(r"\s+", " ", link_match.group(3)))
|
||||
# Record the citation
|
||||
citations["c"+str(format_id)] = (cite_text, cite_title)
|
||||
# Stitch the format id in place of the citation
|
||||
|
Loading…
Reference in New Issue
Block a user