This commit is contained in:
Kovid Goyal 2017-07-09 12:01:20 +05:30
parent 90450e8b12
commit bfa42404e7
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -236,8 +236,7 @@ def render_options(cmd, groups, options_header=True, add_program=True, header_le
def mark_options(raw): def mark_options(raw):
if 'CALIBRE_BUILD_MAN_PAGES' not in os.environ: raw = re.sub(r'(\s+)--(\s+)', ur'\1``--``\2', raw)
raw = re.sub(r'(\s+)--(\s+)', ur'\1-\N{ZERO WIDTH SPACE}-\2', raw)
def sub(m): def sub(m):
opt = m.group() opt = m.group()