bug-groff
[Top][All Lists]
Advanced

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

[bug #63197] [PATCH] [tmac] missing backslashes in conditional expressio


From: Dave
Subject: [bug #63197] [PATCH] [tmac] missing backslashes in conditional expressions
Date: Tue, 11 Oct 2022 01:13:24 -0400 (EDT)

Update of bug #63197 (project groff):

                 Summary: [tmac] missing backslashes in conditional
expressions => [PATCH] [tmac] missing backslashes in conditional expressions

    _______________________________________________________

Follow-up Comment #1:

It's straightforward to confirm that the six instances in the four files
Bjarni identified are the only ones in the current git tree.

$ find . -type f -name \*.tmac -exec grep '\\{ *$' {} \; -print
.       ie \\n[ds*badarg] \{
./tmac/s.tmac
.if d an-msg \{
.if d an-msg \{
.if (\n[an-HF-length] > 1) \{
./tmac/an.tmac
.    el \{
./contrib/mom/om.tmac
.if !\n[GSBOX] \{
./contrib/sboxes/sboxes.tmac

They can also be fixed in a fell swoop with a variant on this command:

$ find . -type f -name \*.tmac -exec sed -i 's/\\{ *$/\\{\\/' {} \;

(Tested using GNU's "find" and "sed")

This might be a stretch of the [PATCH] label, but is arguably easier to apply
than a conventional patch.


    _______________________________________________________

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]