[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Groff] [PATCH] Appease "groff -wmac" when using eqn or pic
From: |
Colin Watson |
Subject: |
[Groff] [PATCH] Appease "groff -wmac" when using eqn or pic |
Date: |
Thu, 2 Jan 2014 13:55:05 +0000 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
* src/preproc/eqn/main.cpp: Define EQ and EN if they are not already
defined, to appease "groff -wmac".
* src/preproc/pic/main.cpp: Likewise for PS and PE.
Fixes: http://bugs.debian.org/495713
---
ChangeLog | 8 ++++++++
src/preproc/eqn/main.cpp | 2 ++
src/preproc/pic/main.cpp | 4 ++++
3 files changed, 14 insertions(+)
diff --git a/ChangeLog b/ChangeLog
index abf7534..2953608 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2014-01-02 Colin Watson <address@hidden>
+
+ * src/preproc/eqn/main.cpp: Define EQ and EN if they are not already
+ defined, to appease "groff -wmac".
+ * src/preproc/pic/main.cpp: Likewise for PS and PE.
+
+ Fixes: http://bugs.debian.org/495713
+
2013-12-23 Bernd Warken <address@hidden>
groff/src/roff/groff/groff.cpp: add groff option `-G' to the
diff --git a/src/preproc/eqn/main.cpp b/src/preproc/eqn/main.cpp
index 167fb4e..79b8565 100644
--- a/src/preproc/eqn/main.cpp
+++ b/src/preproc/eqn/main.cpp
@@ -374,6 +374,8 @@ int main(int argc, char **argv)
}
init_table(device);
init_char_table();
+ printf(".if !dEQ .ds EQ\n"
+ ".if !dEN .ds EN\n");
if (output_format == troff) {
printf(".if !'\\*(.T'%s' "
".if !'\\*(.T'html' " // the html device uses `-Tps' to render
diff --git a/src/preproc/pic/main.cpp b/src/preproc/pic/main.cpp
index f242da0..f4d0fbe 100644
--- a/src/preproc/pic/main.cpp
+++ b/src/preproc/pic/main.cpp
@@ -616,7 +616,11 @@ int main(int argc, char **argv)
out = make_fig_output();
else
#endif
+ {
out = make_troff_output();
+ printf(".if !dPS .ds PS\n"
+ ".if !dPE .ds PE\n");
+ }
#ifdef FIG_SUPPORT
if (whole_file_flag) {
if (optind >= argc)
--
1.8.5.2
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Groff] [PATCH] Appease "groff -wmac" when using eqn or pic,
Colin Watson <=