Guidebook.txt: silence groff complaints about CR

Don't attempt to switch to CR font (used to get fixed-width characters
when generating output that uses proportional width ones) when output
is already fixed-width (plain text).

The most recent release of groff (version 1.23) complains when a font
can't be found, then keeps going.  Earlier versions just silently kept
going.  Failing to load the CR font when already producing fixed-width
chars makes 'keep going' acceptable but the font-load-failure warnings
are a nuisance.
This commit is contained in:
PatR
2023-11-01 21:35:56 -07:00
parent 986596b26d
commit b73e4815fa
2 changed files with 11 additions and 2 deletions

View File

@@ -1,4 +1,4 @@
.\" $NHDT-Branch: keni-crashweb2 $:$NHDT-Revision: 1.530 $ $NHDT-Date: 1693082582 2023/08/26 20:43:02 $
.\" $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.532 $ $NHDT-Date: 1698899756 2023/11/02 04:35:56 $
.\"
.\" This is an excerpt from the 'roff' man page from the 'groff' package.
.\"+--
@@ -30,6 +30,12 @@
.\" \n(fF=1: fixed-width font (Guidebook.txt), =0: proportional-width font
.nr fF (\w'f'p)=(\w'F'p) \" compare width of 'f' to that of 'F'
.
.\" building Guidebook.txt doesn't have CR font available; groff 1.23 issues
.\" a warning each time any font can't be loaded; earlier versions silently
.\" proceeded so lack of CR (fixed-width, moot for plain text) didn't matter
.if \n(fF .do ftr CR R .fi \" if using fixed-width, substitute R for CR
. \" (the substitution affects both '\f' and '.ft')
.
.ds h0 "NetHack Guidebook
.ds h1
.ds h2 %