3 * This file is part of LyX, the document processor.
4 * Licence details can be found in the file COPYING.
9 * Full author contact details are available in file CREDITS.
14 #include "support/std_ostream.h"
16 #include "paragraph.h"
29 pair<bool, string> escapeChar(char c)
35 return make_pair(true, string(" "));
37 case '\0': // Ignore :-)
85 return make_pair(false, str);
89 int openTag(ostream & os, Paragraph::depth_type depth,
90 bool mixcont, string const & latexname,
91 string const & latexparam)
93 if (!latexname.empty() && latexname != "!-- --") {
95 os << string(depth, ' ');
96 os << '<' << latexname;
97 if (!latexparam.empty())
98 os << " " << latexparam;
106 int closeTag(ostream & os, Paragraph::depth_type depth,
107 bool mixcont, string const & latexname)
109 if (!latexname.empty() && latexname != "!-- --") {
111 os << '\n' << string(depth, ' ');
112 os << "</" << latexname << '>';