diff options
author | obrien <obrien@FreeBSD.org> | 1998-12-06 05:54:26 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 1998-12-06 05:54:26 +0000 |
commit | 194c8b4f1f89c85e61fe09e0947c096f6ead70c4 (patch) | |
tree | af3f31bef4d62cb1914fd1fbfd3f0a7969220bd9 /contrib | |
parent | 28f22f9b9db778a1d9a55b1fb379385eef0e2572 (diff) | |
download | FreeBSD-src-194c8b4f1f89c85e61fe09e0947c096f6ead70c4.zip FreeBSD-src-194c8b4f1f89c85e61fe09e0947c096f6ead70c4.tar.gz |
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>
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/groff/tmac/tmac.e | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/groff/tmac/tmac.e b/contrib/groff/tmac/tmac.e index eb5f730f..144565a 100644 --- a/contrib/groff/tmac/tmac.e +++ b/contrib/groff/tmac/tmac.e @@ -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 |