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"
28 pair<bool, string> escapeChar(char c)
34 return make_pair(true, string(" "));
36 case '\0': // Ignore :-)
82 return make_pair(false, str);
86 int openTag(ostream & os, Paragraph::depth_type depth,
87 bool mixcont, string const & latexname)
89 if (!latexname.empty() && latexname != "!-- --") {
91 os << string(depth, ' ');
92 os << '<' << latexname << '>';
102 int closeTag(ostream & os, Paragraph::depth_type depth,
103 bool mixcont, string const & latexname)
105 if (!latexname.empty() && latexname != "!-- --") {
107 os << endl << string(depth, ' ');
108 os << "</" << latexname << '>';