From eda5e9c38c175332ca81e9ecb495cc6769f3ed3a Mon Sep 17 00:00:00 2001 From: Michal Cihar Date: Fri, 25 Sep 2009 11:19:02 +0000 Subject: [PATCH] Escape ' at the begining of the line as it is command marker for roff. --- osc/cmdln.py | 1 + 1 file changed, 1 insertion(+) diff --git a/osc/cmdln.py b/osc/cmdln.py index 40832e36..236e2b96 100644 --- a/osc/cmdln.py +++ b/osc/cmdln.py @@ -124,6 +124,7 @@ MAN_REPLACES = [ (re.compile(r'(^|[ \t\[\'])-([^/ \t-]*)-([^/ \t-]*)($|[ \t=\]\'])'), r'\1\-\2\-\3\4'), (re.compile(r'(^|[ \t\[\'])--([^/ \t-]*)($|[ \t=\]\'])'), r'\1\-\-\2\3'), (re.compile(r'(^|[ \t\[\'])-([^/ \t-]*)($|[ \t=\]\'])'), r'\1\-\2\3'), + (re.compile(r"^'"), r" '"), ] def man_escape(text):