The \*(td string macro, which is supposed to display today's date in the form

"October 14, 1998".  A Y2k fix makes it now display "October 14, 98+1900".
Appears you can perform arithmetic in a string definition.

PR:		gnu/8321
Reviewed by:	Andrew J. Korty <ajk@purdue.edu>
This commit is contained in:
David E. O'Brien 1998-12-06 05:54:26 +00:00
parent f46ecf8bc9
commit e6f93514c8
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=41554

View file

@ -1519,7 +1519,8 @@ in \\f2\\*([B\\f1, \c
.if \n(dw=5 .ds dw Thursday
.if \n(dw=6 .ds dw Friday
.if \n(dw=7 .ds dw Saturday
.ds td \*(mo \n(dy, \n(yr+1900
.nr _y \n(yr+1900
.ds td \*(mo \n(dy, \n(_y
.\" *** PARAMETRIC INITIALIZATIONS ***
.rr x
.nr $v \n(.v00+\n(.sp-1/\n(.sp \" vs as percentage of ps for .sz request