We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 37d90f0 commit 0f891e9Copy full SHA for 0f891e9
scholia/arxiv.py
@@ -81,7 +81,11 @@ def get_metadata(arxiv):
81
'authornames': [author.name for author in entry.authors],
82
'full_text_url': 'https://arxiv.org/pdf/' + arxiv + '.pdf',
83
'publication_date': entry.published[:10],
84
- 'title': entry.title,
+
85
+ # Some titles may have a newline in them. This should be converted to
86
+ # an ordinary space character
87
+ 'title': re.sub(r'\s+', ' ', entry.title),
88
89
'arxiv_classifications': [tag.term for tag in entry.tags],
90
}
91
0 commit comments