carstenkunze pushed a commit to branch master
in repository groff.
commit 0a193f02661c1359f99fb04ac9b16c127e227d0e
Author: Carsten Kunze <[email protected]>
Date: Sat Dec 26 23:44:23 2015 +0100
* contrib/mm/m.tmac: Disable MM macro misc@tag
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 <[email protected]>.
---
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 <[email protected]>
+
+ * contrib/mm/m.tmac: Disable macro misc@tag 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 [email protected], thread starting at
+ http://lists.gnu.org/archive/html/groff/2015-12/msg00033.html)
+
+ Bug reported by Damian McGuckin <[email protected]>.
+
2015-12-14 Werner LEMBERG <[email protected]>
* 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 misc@tag
+.\" 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
_______________________________________________
Groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit