bug-groff
[Top][All Lists]
Advanced

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

[bug #45452] MM macrso: .DS with indent uses wrong line length


From: Carsten Kunze
Subject: [bug #45452] MM macrso: .DS with indent uses wrong line length
Date: Wed, 01 Jul 2015 09:27:57 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20140925 Firefox/24.0 Iceweasel/24.8.1

URL:
  <http://savannah.gnu.org/bugs/?45452>

                 Summary: MM macrso: .DS with indent uses wrong line length
                 Project: GNU troff
            Submitted by: carstenkunze
            Submitted on: Wed 01 Jul 2015 09:27:56 AM GMT
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: None

    _______________________________________________________

Details:

If .DS with first argument '1' or 'I' is used with the MM macros the output
should be displayed with an additinal indention of \n[Si]n.  This is done by
writing the text into a diversion with zero indent and output the diversion
with the additional indent of \n[Si]n.  But since the line length from before
.DS is used in the diversion too the effective line length for ".DS 1" is too
large.  The following patch fixes this:

diff --git a/contrib/mm/m.tmac b/contrib/mm/m.tmac
index 4b76039..09cc03b 100644
--- a/contrib/mm/m.tmac
+++ b/contrib/mm/m.tmac
@@ -2083,7 +2083,9 @@ in=\\n[.i] fi=\\n[.u] .d=\\n[.d] nl=\\n[nl] pg=\\n[%]
 'in 0
 .di ds*div!\\n[ds*snr]
 .\"
address@hidden \\n[ds*old-ll]
+.nr ds*div-ll \\n[ds*old-ll]
+.if \\n[ds*format]=1 .nr ds*div-ll -\\n(Sin
address@hidden \\n[ds*div-ll]
 .nr df*float 0
 ..
 .\"--------------------------------------------




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?45452>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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