bug-groff
[Top][All Lists]
Advanced

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

[bug #60260] Incorrect warnings of dangling .el with bracket-less nestin


From: anonymous
Subject: [bug #60260] Incorrect warnings of dangling .el with bracket-less nesting
Date: Fri, 19 Mar 2021 12:00:50 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:86.0) Gecko/20100101 Firefox/86.0

URL:
  <https://savannah.gnu.org/bugs/?60260>

                 Summary: Incorrect warnings of dangling .el with bracket-less
nesting
                 Project: GNU troff
            Submitted by: None
            Submitted on: Fri 19 Mar 2021 04:00:48 PM UTC
                Category: None
                Severity: 3 - Normal
              Item Group: Incorrect behaviour
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: None

    _______________________________________________________

Details:

The code below warns about "unbalanced .el request" if either the first or
second condition is true (with -w all). 

The warnings do not happen if the "else" statements are wrapped in \{\ ... \}
but the brackets are not supposed to be necessary, according to Branden
Robinson (in a reply to a question on the groff@gnu.org email list).  

Branden also noted that bug https://savannah.gnu.org/bugs/?45502 might be
related.

#!/bin/sh
groff -w all >/dev/null <<'EOF'
.de mymac
.  tm1 "--- mymac called with '\\$1' ---
.  ie '\\$1'a' .tm1 "  CASE a
.  el .ie '\\$1'b' .tm1 "  CASE b
.  el .ie '\\$1'c' .tm1 "  CASE c
.  el .tm1 "  Got something else (\\$1)
..
.mymac a
.mymac b
.mymac c
.mymac d
EOF





    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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