Use a more appropriate reference

main
Bob Mottram 2023-01-04 12:01:58 +00:00
parent 9a7b95eca4
commit f3620f4103
1 changed files with 3 additions and 3 deletions

View File

@ -3624,12 +3624,12 @@ def _test_web_links():
assert expected_text in linked_text
example_text = \
'This post has an arxiv link arXiv:2212.14672 some other text'
'This post has an arxiv link arXiv:2203.15752 some other text'
linked_text = add_web_links(example_text)
expected_text = \
'<a href="https://arxiv.org/abs/2212.14672" tabindex="10" ' + \
'<a href="https://arxiv.org/abs/2203.15752" tabindex="10" ' + \
'rel="nofollow noopener noreferrer"' + \
' target="_blank"><span class="ellipsis">arXiv:2212.14672</span></a>'
' target="_blank"><span class="ellipsis">arXiv:2203.15752</span></a>'
if expected_text not in linked_text:
print(expected_text + '\n')
print(linked_text)