From: Vincent Bernat Date: Sun, 13 Jan 2013 13:23:48 +0000 (+0100) Subject: web: restrict the manual page width to be 66 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0c96e283695334ffd79e0c5799b352033d8ced20;p=thirdparty%2Flldpd.git web: restrict the manual page width to be 66 --- diff --git a/extensions/text.py b/extensions/text.py index e723bd42..db327c6f 100644 --- a/extensions/text.py +++ b/extensions/text.py @@ -30,7 +30,8 @@ class IncludeManpagePlugin(Plugin): # execute git show version:path | MAN_KEEP_FORMATTING=1 man -l - git = subprocess.Popen(["git", "show", "%s:%s" % (version, path)], stdout=subprocess.PIPE) man = subprocess.Popen(["man", "-l", "-"], stdin=git.stdout, stdout=subprocess.PIPE, - env={"MAN_KEEP_FORMATTING": "1"}) + env={"MAN_KEEP_FORMATTING": "1", + "MANWIDTH": "66"}) git.stdout.close() output = man.communicate()[0]