groff
[Top][All Lists]
Advanced

[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 16:26:17 +0100 (CET)

Damian McGuckin <address@hidden> wrote:
> What is the real fix please?

... the .sp -1 and \c in address@hidden don't look reliable and depending on 
what follows may cause issues.  This seems to be the case here.  H adds space 
after the heading, with the .br at begin of DS that space gets fixed.  Now DS 
of cause adds space again.  Now you have the double space.

There is also a .if ... \{ (no trailing backslash) in this macro--is this 
really indented?

Work-around instead of real fix: Since the address@hidden macro is IMHO only 
needed for HTML I would put a ".if '\*[.T]'html'" before its call:

--- m.tmac.orig Wed Dec 23 16:15:50 2015
+++ m.tmac      Wed Dec 23 16:16:38 2015
@@ -1108,7 +1108,7 @@
 .nr hd*last-hsize \\n[.k]
 .nr address@hidden 0
 .\" HTML: end of heading
address@hidden EO-H
+.if '\*[.T]'html' address@hidden EO-H
 ..
 .\"--------
 .de HM



reply via email to

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