[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[groff] 01/01: Appease "groff -wmac" when using eqn or pic
From: |
Colin Watson |
Subject: |
[groff] 01/01: Appease "groff -wmac" when using eqn or pic |
Date: |
Fri, 17 Feb 2017 22:42:10 -0500 (EST) |
cjwatson pushed a commit to branch master
in repository groff.
commit 4b3e5417d53d16ac41ccf6a835840ecde1f97a83
Author: Colin Watson <address@hidden>
Date: Sat Feb 18 03:39:36 2017 +0000
Appease "groff -wmac" when using eqn or pic
* 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 e0263e6..861f8d8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2017-02-18 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
+
2017-02-16 Ingo Schwarze <address@hidden>
mdoc %T: use typographic quotes
diff --git a/src/preproc/eqn/main.cpp b/src/preproc/eqn/main.cpp
index 44a8a9d..95e418b 100644
--- a/src/preproc/eqn/main.cpp
+++ b/src/preproc/eqn/main.cpp
@@ -377,6 +377,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 0a8efa1..3bf7d5f 100644
--- a/src/preproc/pic/main.cpp
+++ b/src/preproc/pic/main.cpp
@@ -619,7 +619,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)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [groff] 01/01: Appease "groff -wmac" when using eqn or pic,
Colin Watson <=