You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-09 12:50:35 +00:00
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:
@@ -871,7 +871,7 @@ def rstize_text(text, state): # type: (str, State) -> str
|
|||||||
inside_url = True
|
inside_url = True
|
||||||
url_has_name = False
|
url_has_name = False
|
||||||
elif cmd == "/url":
|
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
|
tag_depth -= 1
|
||||||
escape_post = True
|
escape_post = True
|
||||||
inside_url = False
|
inside_url = False
|
||||||
@@ -1127,9 +1127,9 @@ def make_link(url, title): # type: (str, str) -> str
|
|||||||
# External link, for example:
|
# External link, for example:
|
||||||
# `http://enet.bespin.org/usergroup0.html`
|
# `http://enet.bespin.org/usergroup0.html`
|
||||||
if title != "":
|
if title != "":
|
||||||
return "`" + title + " <" + url + ">`_"
|
return "`" + title + " <" + url + ">`__"
|
||||||
else:
|
else:
|
||||||
return "`" + url + " <" + url + ">`_"
|
return "`" + url + " <" + url + ">`__"
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
|||||||
Reference in New Issue
Block a user