From 746197d95489a91302e91a2000e75aed8c520059 Mon Sep 17 00:00:00 2001 From: "Martin A. Brown" Date: Fri, 18 Mar 2016 20:06:52 -0700 Subject: [PATCH] match up the detail method on the OutputDirectory with the SourceDocument --- tldp/outputs.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tldp/outputs.py b/tldp/outputs.py index 0eeea0d..5087f1f 100644 --- a/tldp/outputs.py +++ b/tldp/outputs.py @@ -126,8 +126,10 @@ class OutputDirectory(OutputNamingConvention): self.logdir = os.path.join(self.dirname, logdir) def detail(self, widths, verbose, file=sys.stdout): - template = '{s.status:{w.status}} {s.stem:{w.stem}}' - outstr = template.format(s=self, w=widths) + template = ' '.join(('{s.status:{w.status}}', + '{u:{w.doctype}}', + '{s.stem:{w.stem}}')) + outstr = template.format(s=self, w=widths, u="") print(outstr, file=file) if verbose: print(' missing source', file=file)