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] .\" -.ds@set-new-ev \\n[ds*old-ll] +.nr ds*div-ll \\n[ds*old-ll] +.if \\n[ds*format]=1 .nr ds*div-ll -\\n(Sin +.ds@set-new-ev \\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/ _______________________________________________ bug-groff mailing list bug-groff@gnu.org https://lists.gnu.org/mailman/listinfo/bug-groff