mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Do not use zero-width spaces when generating man pages
This commit is contained in:
parent
fa191ab55a
commit
7c21ef9a6d
@ -77,6 +77,7 @@ def build_pot(base):
|
|||||||
|
|
||||||
|
|
||||||
def build_man_pages(language, base):
|
def build_man_pages(language, base):
|
||||||
|
os.environ[b'CALIBRE_BUILD_MAN_PAGES'] = b'1'
|
||||||
sphinx_build(language, base, builder='man', bdir=language)
|
sphinx_build(language, base, builder='man', bdir=language)
|
||||||
|
|
||||||
|
|
||||||
|
@ -239,7 +239,8 @@ def render_options(cmd, groups, options_header=True, add_program=True, header_le
|
|||||||
|
|
||||||
|
|
||||||
def mark_options(raw):
|
def mark_options(raw):
|
||||||
raw = re.sub(r'(\s+)--(\s+)', ur'\1-\u200b-\2', raw)
|
if 'CALIBRE_BUILD_MAN_PAGES' not in os.environ:
|
||||||
|
raw = re.sub(r'(\s+)--(\s+)', ur'\1-\u200b-\2', raw)
|
||||||
|
|
||||||
def sub(m):
|
def sub(m):
|
||||||
opt = m.group()
|
opt = m.group()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user