Make quotes in the cli docs not be curly

This commit is contained in:
Kovid Goyal 2016-04-15 09:42:15 +05:30
parent 8f99ca2bae
commit 614d94496e

View File

@ -196,6 +196,8 @@ def render_options(cmd, groups, options_header=True, add_program=True, header_le
y.get_opt_string())):
help = opt.help if opt.help else ''
help = help.replace('\n', ' ').replace('*', '\\*').replace('%default', str(opt.default))
help = help.replace('"', r'\ ``"``\ ')
help = help.replace("'", r"\ ``'``\ ")
help = mark_options(help)
opt = opt.get_opt_string() + ((', '+', '.join(opt._short_opts)) if opt._short_opts else '')
opt = '.. option:: '+opt