diff options
-rw-r--r-- | pycco/main.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pycco/main.py b/pycco/main.py index 4daf745..67efe41 100644 --- a/pycco/main.py +++ b/pycco/main.py @@ -90,8 +90,8 @@ def parse(source, code): multi_line = False # Get rid of the delimiters so that they aren't in the final docs - line = re.sub(language["multistart"],'',line) - line = re.sub(language["multiend"],'',line) + line = re.sub(re.escape(language["multistart"]),'',line) + line = re.sub(re.escape(language["multiend"]),'',line) docs_text += line.strip() + '\n' if has_code and docs_text.strip(): |