diff --git a/src/article.py b/src/article.py index dbd5bea..9b2db7f 100644 --- a/src/article.py +++ b/src/article.py @@ -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