+2004-10-30 José Matos <jamatos@lyx.org>
+
+ * layouts/db_lyxmacros.inc: Remove innertag "CDATA" from Code.
+
2004-10-30 José Matos <jamatos@lyx.org>
* layouts/db_stdlayouts.inc: remove SGML paragraph type.
+2004-10-30 José Matos <jamatos@lyx.org>
+
+ * paragraph.C (getFirstWord): the content should always be escaped there.
+ (simpleDocBookOnePar):
+ * output_docbook.C (makeEnvironment): replace reference to CDATA to style pass_thru.
+
2004-10-30 José Matos <jamatos@lyx.org>
* paragraph.C (simpleDocBookOnePar): fix reference to CDATA.
// Opening outter tag
sgml::openTag(buf, os, *pbegin);
os << '\n';
- if (bstyle->latextype == LATEX_ENVIRONMENT and bstyle->innertag() == "CDATA")
+ if (bstyle->latextype == LATEX_ENVIRONMENT and bstyle->pass_thru)
os << "<![CDATA[";
while (par != pend) {
// Opening inner tag
switch (bstyle->latextype) {
case LATEX_ENVIRONMENT:
- if (!bstyle->innertag().empty() and bstyle->innertag() != "CDATA") {
+ if (!bstyle->innertag().empty()) {
sgml::openTag(os, bstyle->innertag(), id);
}
break;
// Closing inner tag
switch (bstyle->latextype) {
case LATEX_ENVIRONMENT:
- if (!bstyle->innertag().empty() and bstyle->innertag() != "CDATA") {
+ if (!bstyle->innertag().empty()) {
sgml::closeTag(os, bstyle->innertag());
os << '\n';
}
}
}
- if (bstyle->latextype == LATEX_ENVIRONMENT and bstyle->innertag() == "CDATA")
+ if (bstyle->latextype == LATEX_ENVIRONMENT and bstyle->pass_thru)
os << "]]>";
// Closing outter tag
string str;
boost::tie(ws, str) = sgml::escapeChar(c);
- if (style->pass_thru)
- os << c;
- else
- os << str;
+ os << str;
}
}
return i;
LyXFont font_old =
style->labeltype == LABEL_MANUAL ? style->labelfont : style->font;
- bool cdata = (style->innertag() == "CDATA");
+ bool cdata = style->pass_thru;
// parsing main loop
for (pos_type i = initial; i < size(); ++i) {
LyXFont font = getFont(buf.params(), i, outerfont);