diff --git a/tools/readable_bash.py b/tools/readable_bash.py index 3dd79c96..3ccf1a37 100644 --- a/tools/readable_bash.py +++ b/tools/readable_bash.py @@ -408,7 +408,7 @@ class BashScript(Grammar): string = re.sub(".* #NODOC\n", "", string) string = re.sub("\n\\s*if .*then.*|\n\\s*fi|\n\\s*else|\n\\s*elif .*", "", string) string = quasitokenize(string) - string = re.sub(r"hide_output ", "", string) + string = string.replace("hide_output ", "") parser = BashScript.parser() result = parser.parse_string(string)