File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed
lib/godot/_internal/utils Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change 1
1
name : Build
2
2
3
3
on :
4
+ push :
4
5
pull_request :
5
6
workflow_dispatch :
6
7
inputs :
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ def _remove_sgr(text: str) -> str:
59
59
60
60
def reformat_doc_bbcode (text : str , for_tty : None | bool = None ) -> str :
61
61
if for_tty is None :
62
- for_tty = sys .stdout .isatty ()
62
+ for_tty = sys .stdout .isatty () if sys . stdout else False
63
63
64
64
replacements = _replacements_for_tty if for_tty else _replacements
65
65
@@ -82,11 +82,9 @@ def replace(match_):
82
82
return f'{ replacements .get ("b" , "" )} { name } { replacements .get ("_b" , "" )} '
83
83
84
84
text = re .sub (r'\[(?P<close>/)?(?P<name>[-_.\w/]+)( (?P<value>[-_.\w/]+))?\]' , replace , text )
85
- text = text .replace ('\n ' , '\n \n ' , 1 ) # separate first line from the rest by one blank line
85
+ text = text .replace ('\n ' , '\n \n ' , 1 ) # Separate first line from the rest by one blank line
86
86
87
- # TODO: urls
88
- # TODO: word wrap
87
+ # TODO: Handle URLs
88
+ # TODO: Implement word wrap if necessary
89
89
90
90
return text
91
-
92
-
You can’t perform that action at this time.
0 commit comments