groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [groff] Changing A Defined String


From: Steffen Nurpmeso
Subject: Re: [groff] Changing A Defined String
Date: Sat, 27 Jan 2018 22:45:00 +0100
User-agent: s-nail v14.9.6-40-gdd750017

Tadziu Hoffmann <address@hidden> wrote:
 |Just a short addendum:
 |
 |Since you know that you'll only be stripping off one of the
 |known weekday names, there's also a simpler solution:
  ...
 |However, there is still a caveat with these solutions: although
 |\*[DATE*SHORT] may look like a (single-line) string expansion,
 |it is actually a (multi-line) macro call in disguise.  This
 |means that the following will not work:
 |
 |  .ds LH Formatted on \*[DATE*SHORT]
 |
 |(for example, to set the page header in some hypothetical
 |document).

Why this?  If i use \\*[DATE*SHORT] anything is fine, so it is
because the macro is evaluated while the string is defined.
Is this restriction documented somewhere?  If not it is a bug to
keep on the TODO list, thank you!

--steffen
|
|Der Kragenbaer,                The moon bear,
|der holt sich munter           he cheerfully and one by one
|einen nach dem anderen runter  wa.ks himself off
|(By Robert Gernhardt)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]