Fix doc formatting issue in @GlobalScope.log(), OS.shell_open(), JavaScriptBridge.is_js_buffer(), and Signal#117227
Conversation
|
In the future, maybe add a tip about not putting any BBCode formatting between |
@GlobalScope.log()@GlobalScope.log()
|
I will try fixing the RST generator bug. |
|
It turns out that RST cannot parse nested inline formatting (without using some workarounds): Here would be my "fix" if RST has nested inline formatting: Lines 2282 to 2283 in a1eaac8 # New code:
link_title = text[endq_pos + 1 : endurl_pos]
for invalid_nested_tag in ["url"]: # Use this if RST has nested inline formatting.
if link_title.find(invalid_nested_tag) != -1:
print_error(
f"{state.current_class}.xml: Invalid link title for [url]: found a nested {invalid_nested_tag} tag before [/url] in {context_name}.",
state,
)
break
formatted_link_title = format_text_block(link_title, context, state)
tag_text = make_link(url_target, formatted_link_title) |
@GlobalScope.log()@GlobalScope.log(), OS.shell_open(), JavaScriptBridge.is_js_buffer()
5b89d42 to
ba13d56
Compare
|
Found 4 more formatting issues related to nested tags: godotengine/godot-docs#11834 I can think of 3 ways to deal with this issue:
My new commit implemented option 1. |
46ad71b to
4650f07
Compare
4650f07 to
04da573
Compare
@GlobalScope.log(), OS.shell_open(), JavaScriptBridge.is_js_buffer()@GlobalScope.log(), OS.shell_open(), JavaScriptBridge.is_js_buffer(), and Signal
Closes: godotengine/godot-docs#11834