+2004-08-13 José Matos <jamatos@lyx.org>
+
+ * tabular.C (docbook): close empty tags in XML. Fix bug 1147.
2004-08-13 André Pönitz <poenitz@gmx.net>
+2004-08-13 José Matos <jamatos@lyx.org>
+
+ * insetgraphics.C (docbook): close empty tags in XML. Fix bug 1147.
+
2004-08-04 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
* insetfoot.C (latex): use OutputParams::intitle instead of
// In DocBook v5.0, the graphic tag will be eliminated from DocBook, will
// need to switch to MediaObject. However, for now this is sufficient and
// easier to use.
- runparams.exportdata->addExternalFile("docbook",
- params().filename.absFilename());
- runparams.exportdata->addExternalFile("docbook-xml",
- params().filename.absFilename());
- os << "<graphic fileref=\"&" << graphic_label << ";\">";
+ if (runparams.flavor == OutputParams::XML) {
+ runparams.exportdata->addExternalFile("docbook-xml",
+ params().filename.absFilename());
+ os << "<graphic fileref=\"&" << graphic_label << ";\"/>";
+ } else {
+ runparams.exportdata->addExternalFile("docbook",
+ params().filename.absFilename());
+ os << "<graphic fileref=\"&" << graphic_label << ";\">";
+ }
return 0;
}