bug-groff
[Top][All Lists]
Advanced

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

[bug #63197] [tmac] missing backslashes in conditional expressions


From: Bjarni Ingi Gislason
Subject: [bug #63197] [tmac] missing backslashes in conditional expressions
Date: Mon, 10 Oct 2022 16:47:50 -0400 (EDT)

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

                 Summary: [tmac] missing backslashes in conditional
expressions
                 Project: GNU troff
               Submitter: bjarniig
               Submitted: Mon 10 Oct 2022 08:47:48 PM UTC
                Category: General
                Severity: 3 - Normal
              Item Group: Warning/Suspicious behaviour
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: None


    _______________________________________________________

Follow-up Comments:


-------------------------------------------------------
Date: Mon 10 Oct 2022 08:47:48 PM UTC By: Bjarni Ingi Gislason <bjarniig>
Subject: [tmac] missing backslashes in conditional expressions

  In ".if <anything>" and multi-line "anything", the first logical line
should (must?) contain text to be compatible with (some) other
implementations.

  See also bug #63075.

  Defective tmac files:

Input file is ./contrib/mom/om.tmac, case 1
Test nr. 17:

Add a backslash, if it is missing after \{ at the end of a line.

8728:.    el \{

#####

Input file is ./contrib/sboxes/sboxes.tmac, case 1
Test nr. 17:

Add a backslash, if it is missing after \{ at the end of a line.

61:.if !\n[GSBOX] \{

#####

Input file is ./tmac/an.tmac, case 1
Test nr. 17:

Add a backslash, if it is missing after \{ at the end of a line.

1300:.if d an-msg \{
1339:.if d an-msg \{
1358:.if (\n[an-HF-length] > 1) \{

#####

Input file is ./tmac/s.tmac, case 1
Test nr. 17:

Add a backslash, if it is missing after \{ at the end of a line.

1081:.  ie \\n[ds*badarg] \{

#####

  Test file:

.pl 10v
.nr a 0
.ie a \{
a is \na
add a second line.
.sp
.el \{
a is \na
add a second line.
.\}
.
.sp 1v
With backslash
.sp 1v
.ie a \{\
a \na
add a second line.
.el \{\
a is \na
add a second line.
.\}


####

  Result from "test-nroff -b -ww":

troff: backtrace: file 'prof.missing.backslash':3
troff:prof.missing.backslash:3: warning: missing closing delimiter in
output comparison operator (got a newline)
troff: backtrace: file 'prof.missing.backslash':16
troff:prof.missing.backslash:16: warning: missing closing delimiter in
output comparison operator (got a newline)
a is 0 add a second line.


a is 0 add a second line.

With backslash

add a second line.  a is 0 add a second line.


####

  Result from "heirloom..."

add a second line.


a is 0 add a second line.

With backslash

a is 0 add a second line.


####








    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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