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 gr...@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