+2002-05-02 José Matos <jamatos@fep.up.pt>
+ * buffer.C (makeDocBookFile): white space changes, add newline to
+ command styles.
+ (simpleDocBookOnePar): protect <emphasis> inside a CDATA section.
+
+ * tabular.C (docBook): fix typo.
+
2002-05-03 Juergen Vigna <jug@sad.it>
* screen.C (drawFromTo): recalculate the rowpointer if we had a
if (command_flag) {
if (cmd_depth < command_base) {
- for (Paragraph::depth_type j = command_depth; j >= command_base; --j)
+ for (Paragraph::depth_type j = command_depth;
+ j >= command_base; --j) {
sgmlCloseTag(ofs, j, command_stack[j]);
+ ofs << endl;
+ }
command_depth = command_base = cmd_depth;
} else if (cmd_depth <= command_depth) {
- for (int j = command_depth; j >= int(cmd_depth); --j)
+ for (int j = command_depth;
+ j >= int(cmd_depth); --j) {
sgmlCloseTag(ofs, j, command_stack[j]);
+ ofs << endl;
+ }
command_depth = cmd_depth;
} else
command_depth = cmd_depth;
}
for (int j = command_depth; j >= 0 ; --j)
- if (!command_stack[j].empty())
+ if (!command_stack[j].empty()) {
sgmlCloseTag(ofs, j, command_stack[j]);
+ ofs << endl;
+ }
ofs << "\n\n";
sgmlCloseTag(ofs, 0, top_element);
// handle <emphasis> tag
if (font_old.emph() != font.emph()) {
if (font.emph() == LyXFont::ON) {
+ if(style.latexparam() == "CDATA")
+ os << "]]>";
os << "<emphasis>";
+ if(style.latexparam() == "CDATA")
+ os << "<![CDATA[";
emph_flag = true;
} else if (i) {
+ if(style.latexparam() == "CDATA")
+ os << "]]>";
os << "</emphasis>";
+ if(style.latexparam() == "CDATA")
+ os << "<![CDATA[";
emph_flag = false;
}
}
}
if (emph_flag) {
+ if(style.latexparam() == "CDATA")
+ os << "]]>";
os << "</emphasis>";
+ if(style.latexparam() == "CDATA")
+ os << "<![CDATA[";
}
// resets description flag correctly