lit-meta linux CLI completion and minor bugfix.

This commit is contained in:
Kovid Goyal 2007-11-15 07:21:01 +00:00
parent 3086b89634
commit b529439ada
2 changed files with 4 additions and 4 deletions

View File

@ -161,13 +161,12 @@ FLAG_HEAD = 8
FLAG_ATOM = 16 FLAG_ATOM = 16
class UnBinary(object): class UnBinary(object):
pending_indent = 0
lingering_space = 0
was_in_text = 0
def __init__(self, bin, manifest, attr_map=OPF_ATTR_MAP, tag_map=OPF_TAG_MAP, def __init__(self, bin, manifest, attr_map=OPF_ATTR_MAP, tag_map=OPF_TAG_MAP,
tag_to_attr_map=[[] for i in range(43)]): tag_to_attr_map=[[] for i in range(43)]):
self.manifest = manifest self.manifest = manifest
self.pending_indent = 0
self.lingering_space = 0
self.was_in_text = 0
self.attr_map = attr_map self.attr_map = attr_map
self.tag_map = tag_map self.tag_map = tag_map
self.tag_to_attr_map = tag_to_attr_map self.tag_to_attr_map = tag_to_attr_map

View File

@ -96,6 +96,7 @@ def setup_completion():
f.write(opts_and_exts('lrf-meta', metaop, ['lrf'])) f.write(opts_and_exts('lrf-meta', metaop, ['lrf']))
f.write(opts_and_exts('rtf-meta', metaop, ['rtf'])) f.write(opts_and_exts('rtf-meta', metaop, ['rtf']))
f.write(opts_and_exts('pdf-meta', metaop, ['pdf'])) f.write(opts_and_exts('pdf-meta', metaop, ['pdf']))
f.write(opts_and_exts('lit-meta', metaop, ['lit']))
f.write(opts_and_exts('lrfviewer', lrfviewerop, ['lrf'])) f.write(opts_and_exts('lrfviewer', lrfviewerop, ['lrf']))
f.write(''' f.write('''
_prs500_ls() _prs500_ls()