Fix a bug in the zsh completion when converting for ebook-conver with PDF output

This commit is contained in:
Kovid Goyal 2013-03-09 09:34:23 +05:30
parent 4c674042c0
commit f3203615ae

View File

@ -166,7 +166,7 @@ class ZshCompleter(object): # {{{
exclude = u"'(- *)'" exclude = u"'(- *)'"
h = opt.help or '' h = opt.help or ''
h = h.replace('"', "'").replace('[', '(').replace( h = h.replace('"', "'").replace('[', '(').replace(
']', ')').replace('\n', ' ').replace(':', '\\:') ']', ')').replace('\n', ' ').replace(':', '\\:').replace('`', "'")
h = h.replace('%default', type(u'')(opt.default)) h = h.replace('%default', type(u'')(opt.default))
arg = '' arg = ''
if opt.takes_value(): if opt.takes_value():