makerst: Make external links anonymous

Otherwise we get errors if we use the same title for different links in a given class.
This commit is contained in:
Rémi Verschelde 2021-10-05 15:31:25 +02:00
parent e87f3dd4d0
commit 1e36f5f524
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -871,7 +871,7 @@ def rstize_text(text, state): # type: (str, State) -> str
inside_url = True
url_has_name = False
elif cmd == "/url":
tag_text = ("" if url_has_name else url_link) + " <" + url_link + ">`_"
tag_text = ("" if url_has_name else url_link) + " <" + url_link + ">`__"
tag_depth -= 1
escape_post = True
inside_url = False
@ -1127,9 +1127,9 @@ def make_link(url, title): # type: (str, str) -> str
# External link, for example:
# `http://enet.bespin.org/usergroup0.html`
if title != "":
return "`" + title + " <" + url + ">`_"
return "`" + title + " <" + url + ">`__"
else:
return "`" + url + " <" + url + ">`_"
return "`" + url + " <" + url + ">`__"
if __name__ == "__main__":