diff options
Diffstat (limited to 'contrib/groff/pic/troff.cc')
-rw-r--r-- | contrib/groff/pic/troff.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/contrib/groff/pic/troff.cc b/contrib/groff/pic/troff.cc index 1656854..53761b2 100644 --- a/contrib/groff/pic/troff.cc +++ b/contrib/groff/pic/troff.cc @@ -20,6 +20,7 @@ Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include "pic.h" #include "common.h" +#include "htmlindicate.h" const double RELATIVE_THICKNESS = -1.0; @@ -272,7 +273,7 @@ void troff_output::start_picture(double sc, printf(" %s\n", args); else putchar('\n'); - printf(".if '\\*(.T'html' \\X(graphic-start(\n"); + graphic_start(); printf(".\\\" %g %g %g %g\n", ll.x, ll.y, ur.x, ur.y); printf(".\\\" %.3fi %.3fi %.3fi %.3fi\n", 0.0, height, width, 0.0); printf(".nr " FILL_REG " \\n(.u\n.nf\n"); @@ -291,7 +292,7 @@ void troff_output::finish_picture() printf(".if \\n(" FILL_REG " .fi\n"); printf(".br\n"); printf(".nr " EQN_NO_EXTRA_SPACE_REG " 0\n"); - printf(".if '\\*(.T'html' \\X(graphic-end(\n"); + graphic_end(); // this is a little gross set_location(current_filename, current_lineno); fputs(flyback_flag ? ".PF\n" : ".PE\n", stdout); |