[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Groff] ".if '...'...' \# comments ..." Bug?
From: |
Andrew J. Piziali |
Subject: |
[Groff] ".if '...'...' \# comments ..." Bug? |
Date: |
Sun, 11 Apr 2004 09:18:43 -0500 (CDT) |
I noticed an odd behavior using groff 1.18 with the .if request and
'...'...' expression. The following request sequence operates as
expected:
.if '\*[FunctionalVerificationAspectsFigure]'' \
. ds FunctionalVerificationAspectsFigure 999
If string register FunctionalVerificationAspectsFigure is null, the .ds
request initializes it. However, when the .if request has \# comment
appended to the line:
.if '\*[FunctionalVerificationAspectsFigure]'' \# formatting of this
. ds FunctionalVerificationAspectsFigure 999
the .ds request is unconditionally executed, independent of the value of
FunctionalVerificationAspectsFigure.
I thought the \#, and everything following it, was supposed to be
ignored so that groff sees one line:
.if '\*[FunctionalVerificationAspectsFigure]'' . ds
FunctionalVerificationAspectsFigure 999
--
|
address@hidden ________------+------________
/ \
*---*
- [Groff] ".if '...'...' \# comments ..." Bug?,
Andrew J. Piziali <=