1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-09-20 01:06:17 +02:00

Escape ' at the begining of the line as it is command marker for roff.

This commit is contained in:
Michal Cihar 2009-09-25 11:19:02 +00:00
parent 4e30d9f946
commit eda5e9c38c

View File

@ -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):