[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[groff] 01/01: * contrib/mm/m.tmac: Disable MM macro address@hidden in c
From: |
Carsten Kunze |
Subject: |
[groff] 01/01: * contrib/mm/m.tmac: Disable MM macro address@hidden in case output type is not HTML. |
Date: |
Sat, 26 Dec 2015 22:47:50 +0000 |
carstenkunze pushed a commit to branch master
in repository groff.
commit 0a193f02661c1359f99fb04ac9b16c127e227d0e
Author: Carsten Kunze <address@hidden>
Date: Sat Dec 26 23:44:23 2015 +0100
* contrib/mm/m.tmac: Disable MM macro address@hidden
in case output type is not HTML.
(Avoid unwanted space in case a MM macros .H is
followed immediately by .DS.)
Bug reported by Damian McGuckin <address@hidden>.
---
ChangeLog | 13 +++++++++++++
contrib/mm/m.tmac | 7 +++++++
2 files changed, 20 insertions(+), 0 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 0b01874..8c1dbc4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,16 @@
+2015-12-26 Carsten Kunze <address@hidden>
+
+ * contrib/mm/m.tmac: Disable macro address@hidden in case output
+ type is not HTML.
+
+ This macro did cause unwanted space in case a MM macros .H
+ had been followed immediately by .DS.
+
+ (See also discussion at address@hidden, thread starting at
+ http://lists.gnu.org/archive/html/groff/2015-12/msg00033.html)
+
+ Bug reported by Damian McGuckin <address@hidden>.
+
2015-12-14 Werner LEMBERG <address@hidden>
* src/preproc/eqn/text.cpp (entity_table): s/lamda/lambda/.
diff --git a/contrib/mm/m.tmac b/contrib/mm/m.tmac
index 09cc03b..0c54860 100644
--- a/contrib/mm/m.tmac
+++ b/contrib/mm/m.tmac
@@ -736,6 +736,12 @@ 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
+.\" This macro is currently used solely to give information to the
+.\" HTML postprocessor. If for PostScript or PDF output macro .H
+.\" had been followed by .DS both .H post-space and .DS pre-space
+.\" had been output because of this macro. So it is now enabled
+.\" only when postprocessor tags are required.
+.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 +757,7 @@ in=\\n[.i] fi=\\n[.u] .d=\\n[.d] nl=\\n[nl] pg=\\n[%]
\h'\\n[misc*.k]u'\c
.rr misc*.k
.vpt 1
+.\}
..
.\" ######## module pict #################
.nr pict*width 0
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [groff] 01/01: * contrib/mm/m.tmac: Disable MM macro address@hidden in case output type is not HTML.,
Carsten Kunze <=