groff
[Top][All Lists]
Advanced

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

Warnings of dangling .el with bracket-less nesting


From: Jim Avera
Subject: Warnings of dangling .el with bracket-less nesting
Date: Thu, 18 Mar 2021 16:38:07 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1

The following code operates correctly in all cases but 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 is this supposed to be necessary?   The conditionals all seem to actually work correctly, in spite of the warnings.   Are the warnings a bug?

-Jim

#!/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 via email to

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