X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fxml.cpp;h=7ee8d9137a754749b08134bdc39dcfb29431113c;hb=c69da75dfca389b219e269f9d5668215f398c24b;hp=e479eadeecafb9fc9f3591414d8716eef3ae8c59;hpb=43b16548b473d93b26489d8c4bbd9bf1e903a35f;p=features.git diff --git a/src/xml.cpp b/src/xml.cpp index e479eadeec..7ee8d9137a 100644 --- a/src/xml.cpp +++ b/src/xml.cpp @@ -17,7 +17,6 @@ #include "BufferParams.h" #include "Counters.h" #include "Layout.h" -#include "OutputParams.h" #include "Paragraph.h" #include "Text.h" #include "TextClass.h" @@ -167,7 +166,7 @@ bool FontTag::operator==(StartTag const & tag) const void XMLStream::writeError(std::string const &s) { - LYXERR0(s); + LYXERR(Debug::OUTFILE, s); *this << ESCAPE_NONE << from_utf8(""); *this << xml::CR(); } @@ -175,7 +174,7 @@ void XMLStream::writeError(std::string const &s) void XMLStream::writeError(docstring const &s) { - LYXERR0(s); + LYXERR(Debug::OUTFILE, s); *this << ESCAPE_NONE << from_utf8(""); @@ -687,9 +686,9 @@ void xml::openTag(odocstream & os, string const & name, string const & attribute string param = subst(attribute, "<", "\""); param = subst(param, ">", "\""); - // Note: we ignore the name if it empty or if it is a comment "" or + // Note: we ignore the name if it is empty or if it is a comment "" or // if the name is *dummy*. - // We ignore dummy because dummy is not a valid docbook element and it is + // We ignore dummy because dummy is not a valid DocBook element and it is // the internal name given to single paragraphs in the latex output. // This allow us to simplify the code a lot and is a reasonable compromise. if (!name.empty() && name != "!-- --" && name != "dummy") { @@ -837,7 +836,7 @@ void xml::openTag(XMLStream & xs, const std::string & tag, const docstring & att void xml::closeTag(XMLStream & xs, const docstring & tag, const std::string & tagtype) { - if (tag.empty() || tag == "NONE") + if (tag.empty() || tag == "NONE" || tag == "IGNORE") return; if (tag == "para" || tagtype == "paragraph") // Special case for : always considered as a paragraph.