From: Vincent Bernat Date: Sun, 14 Jan 2024 14:54:47 +0000 (+0100) Subject: extensions: restore previous behavior of groff for ASCII output X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2ae56d3b89a316ffab6f294c4b1369a1d25ae01d;p=thirdparty%2Flldpd.git extensions: restore previous behavior of groff for ASCII output --- diff --git a/extensions/text.py b/extensions/text.py index 9660c307..6ad70183 100644 --- a/extensions/text.py +++ b/extensions/text.py @@ -31,7 +31,8 @@ class IncludeManpagePlugin(Plugin): 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", - "MANWIDTH": "78"}) + "MANWIDTH": "78", + "GROFF_NO_SGR": "1"}) git.stdout.close() output = man.communicate()[0] output = output.decode('ascii')