summaryrefslogtreecommitdiff
path: root/src/preproc/eqn/main.cc
diff options
context:
space:
mode:
authorwlemb <wlemb>2002-02-04 02:08:22 +0000
committerwlemb <wlemb>2002-02-04 02:08:22 +0000
commitdb822800d855f2a9747dcd18fd75c351da096a9e (patch)
tree7432709b4d56f332c916b0551616ae07274525d3 /src/preproc/eqn/main.cc
parentc86a7e2260cb1395fd10cf0efd645f98ec4f7f3c (diff)
downloadgroff-db822800d855f2a9747dcd18fd75c351da096a9e.tar.gz
* src/preproc/eqn/box.cc (output_string): Don't use \\*[...].
* src/preproc/eqn/main.cc (do_file, inline_equation): Call `restore_compatibility' before `output_string' -- the LINE_STRING register now already contains proper switches from and to compatibility mode.
Diffstat (limited to 'src/preproc/eqn/main.cc')
-rw-r--r--src/preproc/eqn/main.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/preproc/eqn/main.cc b/src/preproc/eqn/main.cc
index 064dfc26..5c26ab3b 100644
--- a/src/preproc/eqn/main.cc
+++ b/src/preproc/eqn/main.cc
@@ -132,11 +132,11 @@ void do_file(FILE *fp, const char *filename)
non_empty_flag = 0;
inline_flag = 0;
yyparse();
+ restore_compatibility();
if (non_empty_flag) {
printf(".lf %d\n", current_lineno - 1);
output_string();
}
- restore_compatibility();
printf(".lf %d\n", current_lineno);
put_string(linebuf, stdout);
if (html && (suppress_html == 0))
@@ -217,9 +217,9 @@ static int inline_equation(FILE *fp, string &linebuf, string &str)
break;
}
}
+ restore_compatibility();
printf(".lf %d\n", current_lineno);
output_string();
- restore_compatibility();
printf(".lf %d\n", current_lineno + 1);
return 1;
}