Reduce whitespace inside citation targets

This commit is contained in:
Tim Van Baak 2018-08-09 09:10:00 -07:00
parent f2e07cf471
commit c8cfbc6da8
1 changed files with 1 additions and 1 deletions

View File

@ -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