[Top][All Lists]

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

Re: [Groff] Problem with MM spacing with macro immediately after a headi

From: Carsten Kunze
Subject: Re: [Groff] Problem with MM spacing with macro immediately after a heading (H)
Date: Wed, 23 Dec 2015 21:50:17 +0100 (CET)

Werner LEMBERG <address@hidden> wrote:
> No time to dig into this issue.  If you provide a patch, I'm gladly
> applying it.

The macro address@hidden is solely used for HTML output (currently).  It causes 
the problem in this case (the line \h'\\n[misc*.k]u'\c).  I suggest to enable 
this macro only in HTML mode to avoid any unwanted side effect for other kinds 
of output.

This may not fix it for HTML mode but HTML support in MM is very rudimentary 
and needs work anyway.

The line .if r misc*ti \{ I would not fix since I don't know if it does by 
intention not have a trailing '\'.  Again--this is relevant for HTML output 
only and this needs additional work anyway.

I suggest the following patch (also attached as a file to avoid white space 
modification).  Damian--could you please test it?  I did test it but it would 
not hurt to cross check it.

diff --git a/contrib/mm/m.tmac b/contrib/mm/m.tmac
index 09cc03b..39bc4ef 100644
--- a/contrib/mm/m.tmac
+++ b/contrib/mm/m.tmac
@@ -736,6 +736,7 @@ in=\\n[.i] fi=\\n[.u] .d=\\n[.d] nl=\\n[nl] pg=\\n[%]
 .\" Wrapper to cancel the side effect of .tag + .br generating
 .\" unwanted vertical space.
 .de address@hidden
+.if '\*[.T]'html' \{\
 .\" retain temporary indentation and horizontal position
 .if !(\\n[.in]-\\n[.i]=0) .nr misc*ti \\n[.in]
 .nr misc*.k \\n[.k]
@@ -751,6 +752,7 @@ in=\\n[.i] fi=\\n[.u] .d=\\n[.d] nl=\\n[nl] pg=\\n[%]
 .rr misc*.k
 .vpt 1
 .\" ######## module pict #################
 .nr pict*width 0

Attachment: patch_contrib_mm_m_tmac.gz
Description: GNU Zip compressed data

reply via email to

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