Add GROFF_NO_SGR=1 to w3mman2html.cgi for non-Debian groff
Bug-Debian: https://github.com/tats/w3m/pull/238 Bug-Debian: https://github.com/tats/w3m/issues/201
This commit is contained in:
		| @@ -81,7 +81,7 @@ if ($query{"local"}) { | ||||
|   if (! ($file =~ /^\//)) { | ||||
|     $file = $query{"pwd"} . '/' . $file; | ||||
|   } | ||||
|   open(F, "MAN_KEEP_FORMATTING=1 $MAN $file 2> /dev/null |"); | ||||
|   open(F, "GROFF_NO_SGR=1 MAN_KEEP_FORMATTING=1 $MAN $file 2> /dev/null |"); | ||||
| } else { | ||||
|   $man = $query{"man"}; | ||||
|   if ($man =~ s/\((\w+)\)$//) { | ||||
| @@ -97,7 +97,7 @@ if ($query{"local"}) { | ||||
|  | ||||
|   $section =~ s:([^-\w\200-\377.,])::g; | ||||
|   $man =~ s:([^-\w\200-\377.,])::g; | ||||
|   open(F, "MAN_KEEP_FORMATTING=1 $MAN $section $man 2> /dev/null |"); | ||||
|   open(F, "GROFF_NO_SGR=1 MAN_KEEP_FORMATTING=1 $MAN $section $man 2> /dev/null |"); | ||||
| } | ||||
| $ok = 0; | ||||
| undef $header; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user