Skip to content

Commit

Permalink
makerst: Make external links anonymous
Browse files Browse the repository at this point in the history
Otherwise we get errors if we use the same title for different links in a given class.

(cherry picked from commit 1e36f5f)
  • Loading branch information
akien-mga committed Oct 6, 2021
1 parent c7eb3d2 commit 322387b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions doc/tools/makerst.py
Original file line number Diff line number Diff line change
Expand Up @@ -860,7 +860,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
Expand Down Expand Up @@ -1091,9 +1091,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__":
Expand Down

0 comments on commit 322387b

Please sign in to comment.