Change whitespace stripping logic

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

View File

@ -126,7 +126,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(re.sub(r"\s+", " ", link_match.group(3)))
cite_title = utils.titlecase(link_match.group(3).strip())
# Record the citation
cite = LexiconCitation(format_id, cite_text, cite_title)
citations.append(cite)