From 7fbe4b80ecabd07e3d5b23c1902e1bc76ca5fe32 Mon Sep 17 00:00:00 2001 From: "Martin A. Brown" Date: Thu, 10 Mar 2016 10:38:20 -0800 Subject: [PATCH] add width entry for doctype (output formatting) --- tldp/driver.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tldp/driver.py b/tldp/driver.py index 1aa320c..e7ef2f2 100644 --- a/tldp/driver.py +++ b/tldp/driver.py @@ -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