mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Cleanup previous PR
This commit is contained in:
parent
2a727fa189
commit
ea498af93c
@ -20,7 +20,7 @@ class PDBOutput(OutputFormatPlugin):
|
||||
OptionRecommendation(name='format', recommended_value='doc',
|
||||
level=OptionRecommendation.LOW,
|
||||
short_switch='f', choices=ALL_FORMAT_WRITERS,
|
||||
help=(_('Format to use inside the PDB container. Choices are:') + ', '.join(ALL_FORMAT_WRITERS))),
|
||||
help=(_('Format to use inside the PDB container. Choices are: ') + ', '.join(ALL_FORMAT_WRITERS))),
|
||||
OptionRecommendation(name='pdb_output_encoding', recommended_value='cp1252',
|
||||
level=OptionRecommendation.LOW,
|
||||
help=_('Specify the character encoding of the output document. '
|
||||
|
@ -31,7 +31,7 @@ def _import_readers():
|
||||
}
|
||||
|
||||
|
||||
ALL_FORMAT_WRITERS = ('doc', 'ereader', 'ztxt') # keep sorted alphabetically
|
||||
ALL_FORMAT_WRITERS = 'doc', 'ereader', 'ztxt' # keep sorted alphabetically
|
||||
FORMAT_WRITERS = None
|
||||
|
||||
|
||||
|
@ -289,7 +289,7 @@ class ZshCompleter: # {{{
|
||||
elif opt.choices:
|
||||
arg += "(%s)"%'|'.join(opt.choices)
|
||||
elif set(file_map).intersection(set(opt._long_opts)):
|
||||
k = list(set(file_map).intersection(set(opt._long_opts)))
|
||||
k = tuple(set(file_map).intersection(set(opt._long_opts)))
|
||||
exts = file_map[k[0]]
|
||||
if exts:
|
||||
exts = ('*.%s'%x for x in sorted(exts + [x.upper() for x in exts]))
|
||||
|
Loading…
x
Reference in New Issue
Block a user