From 0c96e283695334ffd79e0c5799b352033d8ced20 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Sun, 13 Jan 2013 14:23:48 +0100 Subject: [PATCH] web: restrict the manual page width to be 66 --- extensions/text.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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] -- 2.39.5