{author_str} ({year}).
{title}"""
for a in range(2,31):
key = 'url_'+str(a)
if key not in entry:
break
note_key = 'url_note_'+str(a)
if note_key not in entry:
url_note = 'link '+str(a)
else:
url_note = entry[note_key]
# CORRECT QUOTING: Outer single ', Inner double "
html += f' [{url_note}]'
if custom_note:
html += f" {custom_note}."
else:
html += "."
if container or volume or pages:
html += f" {container}{volume}{pages}."
html += "