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

CI: Partially sync workflows and actions with 3.x branch

Stick to `ubuntu:20.04` runners for now, as porting to newer ones implies
fixing a number of compilation warnings which may not be worth the trouble
for an EOL branch.
This commit is contained in:
Rémi Verschelde
2024-11-08 11:39:46 +01:00
parent a03019716e
commit 742eae5a2e
36 changed files with 678 additions and 485 deletions

View File

@@ -584,7 +584,7 @@ def escape_rst(text, until_pos=-1): # type: (str) -> str
pos = text.find("*", pos, until_pos)
if pos == -1:
break
text = text[:pos] + "\*" + text[pos + 1 :]
text = text[:pos] + "\\*" + text[pos + 1 :]
pos += 2
# Escape _ character at the end of a word to avoid interpreting it as an inline hyperlink
@@ -594,7 +594,7 @@ def escape_rst(text, until_pos=-1): # type: (str) -> str
if pos == -1:
break
if not text[pos + 1].isalnum(): # don't escape within a snake_case word
text = text[:pos] + "\_" + text[pos + 1 :]
text = text[:pos] + "\\_" + text[pos + 1 :]
pos += 2
else:
pos += 1
@@ -852,7 +852,7 @@ def rstize_text(text, state): # type: (str, State) -> str
# Properly escape things like `[Node]s`
if escape_post and post_text and (post_text[0].isalnum() or post_text[0] == "("): # not punctuation, escape
post_text = "\ " + post_text
post_text = "\\ " + post_text
next_brac_pos = post_text.find("[", 0)
iter_pos = 0
@@ -860,7 +860,7 @@ def rstize_text(text, state): # type: (str, State) -> str
iter_pos = post_text.find("*", iter_pos, next_brac_pos)
if iter_pos == -1:
break
post_text = post_text[:iter_pos] + "\*" + post_text[iter_pos + 1 :]
post_text = post_text[:iter_pos] + "\\*" + post_text[iter_pos + 1 :]
iter_pos += 2
iter_pos = 0
@@ -869,7 +869,7 @@ def rstize_text(text, state): # type: (str, State) -> str
if iter_pos == -1:
break
if not post_text[iter_pos + 1].isalnum(): # don't escape within a snake_case word
post_text = post_text[:iter_pos] + "\_" + post_text[iter_pos + 1 :]
post_text = post_text[:iter_pos] + "\\_" + post_text[iter_pos + 1 :]
iter_pos += 2
else:
iter_pos += 1