add format name to --list output (for sources)

This commit is contained in:
Martin A. Brown 2016-03-10 10:38:40 -08:00
parent 7fbe4b80ec
commit 90f8d6e690
1 changed files with 3 additions and 1 deletions

View File

@ -197,7 +197,9 @@ class SourceDocument(object):
def detail(self, widths, verbose, file=sys.stdout):
'''produce a small tabular output about the document'''
template = '{s.status:{w.status}} {s.stem:{w.stem}}'
template = ' '.join(('{s.status:{w.status}}',
'{s.doctype.formatname:{w.doctype}}',
'{s.stem:{w.stem}}'))
outstr = template.format(s=self, w=widths)
print(outstr, file=file)
if verbose: