match up the detail method on the OutputDirectory with the SourceDocument

This commit is contained in:
Martin A. Brown 2016-03-18 20:06:52 -07:00
parent 45ee1cf4c8
commit 746197d954
1 changed files with 4 additions and 2 deletions

View File

@ -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="<unknown>")
print(outstr, file=file)
if verbose:
print(' missing source', file=file)