Follow-up Comment #16, bug #65474 (group groff):

[comment #11 comment #11:]
> Could you explain why Tadziu's argument is cogent? I'm not
> following it.

In a nutshell, groff short-circuits in a quirky and nonintuitive way.  In this
code:

.ie condition1 action1
.el .ie condition2 action2
.el action3

when condition1 is true, groff takes action1.  Then it sees the first .el, a
branch it now knows it needn't take, so it discards the rest of the line
unexamined.  Thus, it's unaware of the second .ie.  So when it goes on and
next sees the second .el, it says, "Waitaminute, else of _what_?"

> Also, is groff purposely incompatible with traditional nroff
> when evaluating .ie?

I don't think so, and I _think_ this incompatibility is what Branden is
getting at in bug #60260, though I've not yet grokked his logic there to know
if it's the same as what your example shows.


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?65474>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/


Reply via email to