1
0
Fork 0
mirror of https://git.tukaani.org/xz.git synced 2024-04-04 12:36:23 +02:00

build-aux/manconv.sh: Fix US-ASCII and UTF-8 output.

groff defaults to SGR escapes. Using -P-c passes -c to grotty
which restores the old behavior. Perhaps there is a better way to
get pure plain text output but this works for now.
This commit is contained in:
Lasse Collin 2023-08-02 15:19:43 +03:00
parent f6f9f5651a
commit 6a1093c000

View file

@ -38,10 +38,10 @@ s/^\\.PD\$/.PD $PD/"
case $FORMAT in case $FORMAT in
ascii) ascii)
groff -t -mandoc -Tascii | col -bx groff -t -mandoc -Tascii -P-c | col -bx
;; ;;
utf8) utf8)
groff -t -mandoc -Tutf8 | col -bx groff -t -mandoc -Tutf8 -P-c | col -bx
;; ;;
ps) ps)
sed "$SED_PD" | groff -dpaper=$PAPER -t -mandoc \ sed "$SED_PD" | groff -dpaper=$PAPER -t -mandoc \