+
+int openTag(ostream & os, Paragraph::depth_type depth,
+ bool mixcont, string const & latexname)
+{
+ if (!latexname.empty() && latexname != "!-- --") {
+ if (!mixcont)
+ os << string(depth, ' ');
+ os << '<' << latexname << '>';
+ }
+
+ if (!mixcont)
+ os << endl;
+
+ return !mixcont;
+}
+
+
+int closeTag(ostream & os, Paragraph::depth_type depth,
+ bool mixcont, string const & latexname)
+{
+ if (!latexname.empty() && latexname != "!-- --") {
+ if (!mixcont)
+ os << endl << string(depth, ' ');
+ os << "</" << latexname << '>';
+ }
+
+ if (!mixcont)
+ os << endl;
+
+ return !mixcont;
+}
+