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