From 90f8d6e690bffc5053e41ae1aaf021a725dc4209 Mon Sep 17 00:00:00 2001 From: "Martin A. Brown" Date: Thu, 10 Mar 2016 10:38:40 -0800 Subject: [PATCH] add format name to --list output (for sources) --- tldp/sources.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tldp/sources.py b/tldp/sources.py index 2d76bf4..18a7b8a 100644 --- a/tldp/sources.py +++ b/tldp/sources.py @@ -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: