Sync-to-go: update copyright for 2015
[s-roff.git] / src / lib-roff / htmlhint.cpp
blob8c8199517a27ba1e1904e252786c1c2ce774d015
1 /*@ This file contains a very simple set of routines which might be shared by
2 *@ preprocessors. It allows a preprocessor to indicate when an inline image
3 *@ should be created. This string is intercepted by pre-html and substituted
4 *@ for the image name and suppression escapes. pre-html runs troff twice,
5 *@ once with -Thtml (or -Txhtml) and once with -Tps. `troff -Thtml'
6 *@ (and `troff -Txhtml') emit(s) a <src='image'.png> tag and the postscript
7 *@ device driver works out the min/max limits of the graphic region. These
8 *@ region limits are read by pre-html and an image is generated via
9 *@ troff -Tps -> gs -> png
11 * Copyright (c) 2014 - 2015 Steffen (Daode) Nurpmeso <sdaoden@users.sf.net>.
13 * Copyright (C) 2000 - 2002, 2008 Free Software Foundation, Inc.
14 * Written by Gaius Mulley (gaius@glam.ac.uk)
16 * This is free software; you can redistribute it and/or modify it under
17 * the terms of the GNU General Public License as published by the Free
18 * Software Foundation; either version 2, or (at your option) any later
19 * version.
21 * This is distributed in the hope that it will be useful, but WITHOUT ANY
22 * WARRANTY; without even the implied warranty of MERCHANTABILITY or
23 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
24 * for more details.
26 * You should have received a copy of the GNU General Public License along
27 * with groff; see the file COPYING. If not, write to the Free Software
28 * Foundation, 51 Franklin St - Fifth Floor, Boston, MA 02110-1301, USA.
31 #include "config.h"
32 #include "lib.h"
34 #include <stddef.h>
35 #include <stdlib.h>
37 #include "html-strings.h"
38 #include "nonposix.h"
39 #include "stringclass.h"
42 * html_begin_suppress - emit a start of image tag which will be seen
43 * by pre-html.
45 void html_begin_suppress()
47 put_string(HTML_IMAGE_INLINE_BEGIN, stdout);
51 * html_end_suppress - emit an end of image tag which will be seen
52 * by pre-html.
54 void html_end_suppress()
56 put_string(HTML_IMAGE_INLINE_END, stdout);
59 // s-it2-mode