3 * Copyright 2002 the LyX Team
4 * Read the file COPYING
7 * \author John Levon <levon@movementarian.org>
12 #include "support/LOstream.h"
14 #include "paragraph.h"
24 pair<bool, string> escapeChar(char c)
29 case Paragraph::META_NEWLINE:
33 return make_pair(true, string(" "));
35 case '\0': // Ignore :-)
81 return make_pair(false, str);
85 int openTag(ostream & os, Paragraph::depth_type depth,
86 bool mixcont, string const & latexname)
88 if (!latexname.empty() && latexname != "!-- --") {
90 os << string(depth, ' ');
91 os << '<' << latexname << '>';
101 int closeTag(ostream & os, Paragraph::depth_type depth,
102 bool mixcont, string const & latexname)
104 if (!latexname.empty() && latexname != "!-- --") {
106 os << endl << string(depth, ' ');
107 os << "</" << latexname << '>';