groff
[Top][All Lists]
Advanced

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

Re: [Groff] condition: OR of two string comparisons


From: Steffen Nurpmeso
Subject: Re: [Groff] condition: OR of two string comparisons
Date: Thu, 13 Nov 2014 13:37:08 +0100
User-agent: s-nail v14.7.8-70-g9310369

<address@hidden> wrote:
 |>> the statement:
 |>>
 |>> .if 'str1'str2' anything
 |>>
 |>> cannot handle regular expressions or kinda glob-ing as patterns?

would be really cool to have.

 |A nested .if-statement will have two .el-parts, containing the same
 |code. I wanted to avoid that. However, a De Morgan of the original OR I

oh yes, would also be really cool to have.

 |May someone help me to direct me to the place where the .if-statements
 |for string comparison are located. I'm a bit new to the sources (and
 |had problems to grep for "if"). Do I have to look at the .m4-files?

do_if_request() in troff/input.cpp seems to be a good place.
Or wait two or three more years and wait until the next maintainer
cherry-picked changes from S-roff back into groff.
Ciao,

--steffen



reply via email to

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