Change whitespace stripping logic

This commit is contained in:
Tim Van Baak 2019-05-24 00:28:44 -07:00
parent f85f0ce7e5
commit badf3ccf4a
1 changed files with 1 additions and 1 deletions

View File

@ -126,7 +126,7 @@ class LexiconArticle:
while link_match: while link_match:
# Identify the citation text and cited article # Identify the citation text and cited article
cite_text = link_match.group(2) if link_match.group(2) else link_match.group(3) cite_text = link_match.group(2) if link_match.group(2) else link_match.group(3)
cite_title = utils.titlecase(re.sub(r"\s+", " ", link_match.group(3))) cite_title = utils.titlecase(link_match.group(3).strip())
# Record the citation # Record the citation
cite = LexiconCitation(format_id, cite_text, cite_title) cite = LexiconCitation(format_id, cite_text, cite_title)
citations.append(cite) citations.append(cite)