From 052ccc5c2c455a938ba97ad9e76e25c7b1c79283 Mon Sep 17 00:00:00 2001 From: Aaron Blohowiak Date: Mon, 13 Dec 2010 00:22:29 -0800 Subject: make JS work by escaping the start and end symbols --- pycco/main.py | 4 ++-- 1 file 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(): -- cgit v1.2.1