Merge #27061: groff: fix man page coloring
This commit is contained in:
commit
7b7eb577a2
@ -59,6 +59,9 @@ stdenv.mkDerivation rec {
|
||||
postInstall = ''
|
||||
rm $doc/share/doc/groff/examples/hdtbl/*color*ps
|
||||
find $doc/share/doc/groff/ -type f -print0 | xargs -0 sed -i -e 's/%%CreationDate: .*//'
|
||||
for f in 'man.local' 'mdoc.local'; do
|
||||
cat '${./site.tmac}' >>"$out/share/groff/site-tmac/$f"
|
||||
done
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
|
16
pkgs/tools/text/groff/site.tmac
Normal file
16
pkgs/tools/text/groff/site.tmac
Normal file
@ -0,0 +1,16 @@
|
||||
.
|
||||
.if n \{\
|
||||
. \" Character translations for non-keyboard
|
||||
. \" characters - to make them searchable
|
||||
. if '\*[.T]'utf8' \{\
|
||||
. char \- \N'45'
|
||||
. char - \N'45'
|
||||
. char ' \N'39'
|
||||
. char \' \N'39'
|
||||
. \}
|
||||
.
|
||||
. \" Shut off SGR by default (groff colors)
|
||||
. \" Require GROFF_SGR envvar defined to turn it on
|
||||
. if '\V[GROFF_SGR]'' \
|
||||
. output x X tty: sgr 0
|
||||
.\}
|
Loading…
Reference in New Issue
Block a user