add width entry for doctype (output formatting)

This commit is contained in:
Martin A. Brown 2016-03-10 10:38:20 -08:00
parent 42bd3e699f
commit 7fbe4b80ec
1 changed files with 1 additions and 0 deletions

View File

@ -149,6 +149,7 @@ def summary(config, *args, **kwargs):
def detail(config, docs, **kwargs):
file = kwargs.get('file', sys.stdout)
width = Namespace()
width.doctype = max([len(x.formatname) for x in knowndoctypes])
width.status = max([len(x) for x in status_types])
width.stem = max([len(x.stem) for x in docs])
# -- if user just said "list" with no args, then give the user something