1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

ClassRef: Replace [code]CurrentClass[/code] with [CurrentClass]

Modified makerst to generate code tags for these to avoid hyperlinks to the same class.
This commit is contained in:
Ignacio Etcheverry
2019-03-29 23:37:35 +01:00
parent c8aa85189a
commit d80bc5cbba
80 changed files with 261 additions and 257 deletions

View File

@@ -702,7 +702,11 @@ def rstize_text(text, state): # type: (str, State) -> str
escape_post = False
if tag_text in state.classes:
tag_text = make_type(tag_text, state)
if tag_text == state.current_class:
# We don't want references to the same class
tag_text = '``{}``'.format(tag_text)
else:
tag_text = make_type(tag_text, state)
escape_post = True
else: # command
cmd = tag_text