]> git.lyx.org Git - lyx.git/blobdiff - src/buffer.C
fix crash after removing a table row (again due to uncorrected cursor
[lyx.git] / src / buffer.C
index 00fe5ef600b56d0424a3e73fbe4848381a77d599..999b1dd041de8faca49231e0cd2dcea4c28431ef 100644 (file)
@@ -1089,6 +1089,13 @@ void Buffer::makeDocBookFile(string const & fname,
                        ofs << " PUBLIC \"-//OASIS//DTD DocBook V4.2//EN\"";
 
                string preamble = params().preamble;
+               if (runparams.flavor != OutputParams::XML ) {
+                       preamble += "<!ENTITY % output.print.png \"IGNORE\">\n";
+                       preamble += "<!ENTITY % output.print.pdf \"IGNORE\">\n";
+                       preamble += "<!ENTITY % output.print.eps \"IGNORE\">\n";
+                       preamble += "<!ENTITY % output.print.bmp \"IGNORE\">\n";
+               }
+                       
                string const name = runparams.nice ? ChangeExtension(pimpl_->filename, ".sgml")
                         : fname;
                preamble += features.getIncludedFiles(name);