1
Description: Instruct man to preserve formatting characters in its output
2
rather than filtering them through col. Works as of man-db 2.5.0, but is
3
harmless with older versions.
4
Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=325699
5
Ubuntu: https://bugs.launchpad.net/ubuntu/+source/w3m/+bug/353900
7
Index: b/scripts/w3mman/w3mman2html.cgi.in
8
===================================================================
9
--- a/scripts/w3mman/w3mman2html.cgi.in
10
+++ b/scripts/w3mman/w3mman2html.cgi.in
12
if (! ($file =~ /^\//)) {
13
$file = $query{"pwd"} . '/' . $file;
15
- open(F, "$MAN -l $file 2> /dev/null |");
16
+ open(F, "MAN_KEEP_FORMATTING=1 $MAN -l $file 2> /dev/null |");
19
if ($man =~ s/\((\w+)\)$//) {
22
$section =~ s:([^-\w\200-\377.,])::g;
23
$man =~ s:([^-\w\200-\377.,])::g;
24
- open(F, "$MAN $section $man 2> /dev/null |");
25
+ open(F, "MAN_KEEP_FORMATTING=1 $MAN $section $man 2> /dev/null |");