bug-groff
[Top][All Lists]
Advanced

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

[bug #59798] [PATCH] an-old.tmac: Add '.na' to macro '.TS' and '.ad' to


From: Bjarni Ingi Gislason
Subject: [bug #59798] [PATCH] an-old.tmac: Add '.na' to macro '.TS' and '.ad' to macro '.TE'
Date: Fri, 1 Jan 2021 16:30:58 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0

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

                 Summary: [PATCH] an-old.tmac: Add '.na' to macro '.TS' and
'.ad' to  macro '.TE'
                 Project: GNU troff
            Submitted by: bjarniig
            Submitted on: Fri 01 Jan 2021 09:30:57 PM UTC
                Category: Macro - man
                Severity: 3 - Normal
              Item Group: New feature
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: None

    _______________________________________________________

Details:

tmac/an-old.tmac: Add '.na' to macro '.TS' and '.ad' to macro '.TE'

  "tbl" manages the adjustment of margins on its own.

  An external or default adjustment setting can cause a warning, like

"cannot adjust line at both margins"

  for example in

  test-nroff -man -z man/groff_char.7.man

troff: backtrace: file 'groff_char.7.man':1545
troff: groff_char.7.man:1545: warning [p 10, 9.8i]: cannot adjust line at both
margins
troff: backtrace: file 'groff_char.7.man':1546
troff: groff_char.7.man:1546: warning [p 10, 10.0i]: cannot adjust line at
both margins
Signed-off-by: Bjarni Ingi Gislason <bjarniig@rhi.hi.is>
---
 tmac/an-old.tmac | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tmac/an-old.tmac b/tmac/an-old.tmac
index b7781eca..de27558f 100644
--- a/tmac/an-old.tmac
+++ b/tmac/an-old.tmac
@@ -590,6 +590,7 @@
 .\" table support
 .
 .de1 TS
+.  na \" "tbl" adjusts margins on its own, it is restored in .TE.
 .  \" If continuous rendering, tell tbl not to use keeps.
 .  ie \\n[cR] \
 .    nr 3usekeeps 0
@@ -607,6 +608,7 @@
 ..
 .
 .de1 TE
+.  ad \" Restore adjustment, as it was removed in .TS.
 .  HTML-IMAGE-END
 .  if \\n[an-html] \
 .    ll \\n[an-TS-ll]u
-- 
2.29.2






    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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