]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
web: restrict the manual page width to be 66
authorVincent Bernat <bernat@luffy.cx>
Sun, 13 Jan 2013 13:23:48 +0000 (14:23 +0100)
committerVincent Bernat <bernat@luffy.cx>
Sun, 13 Jan 2013 13:23:48 +0000 (14:23 +0100)
extensions/text.py

index e723bd42b95dcb05fb8ed247a5449d099b775d98..db327c6f17410ab013caea120db4a65398cdf925 100644 (file)
@@ -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]