+2002-03-04 Jose Abilio Oliveira Matos <jamatos@novalis.fc.up.pt>
+
+ * exporter.C (Export): for linuxdoc and docbook the buffer is a nice
+ file if it doesn't go to a temporary file.
+
+ * buffer.C (sgmlOpenTag):
+ (sgmlCloseTag): remove extra newline insertion.
+
2002-03-04 Lars Gullik Bjønnes <larsbj@birdstep.com>
* text.C (getRowNearY): comment out debug msg
}
-void Buffer::sgmlOpenTag(ostream & os, Paragraph::depth_type depth,
+void Buffer::sgmlOpenTag(ostream & os, Paragraph::depth_type,
string const & latexname) const
{
if (!latexname.empty() && latexname != "!-- --")
//os << "<!-- " << depth << " -->" << "<" << latexname << ">";
- os << string(depth, ' ') << "<" << latexname << ">\n";
+ os << "<" << latexname << ">";
}
-void Buffer::sgmlCloseTag(ostream & os, Paragraph::depth_type depth,
+void Buffer::sgmlCloseTag(ostream & os, Paragraph::depth_type,
string const & latexname) const
{
if (!latexname.empty() && latexname != "!-- --")
//os << "<!-- " << depth << " -->" << "</" << latexname << ">\n";
- os << string(depth, ' ') << "</" << latexname << ">\n";
+ os << "</" << latexname << ">";
}
buffer->writeFileAscii(filename, lyxrc.ascii_linelen);
// Linuxdoc backend
else if (buffer->isLinuxDoc())
- buffer->makeLinuxDocFile(filename, true);
+ buffer->makeLinuxDocFile(filename, !put_in_tempdir);
// Docbook backend
else if (buffer->isDocBook())
- buffer->makeDocBookFile(filename, true);
+ buffer->makeDocBookFile(filename, !put_in_tempdir);
// LaTeX backend
else if (backend_format == format)
buffer->makeLaTeXFile(filename, string(), true);
+2002-03-04 Jose Abilio Oliveira Matos <jamatos@novalis.fc.up.pt>
+
+ * insetinclude.C (linuxdoc, docbook): deal correctly with the niceFile
+ argument.
+
2002-03-03 Lars Gullik Bjønnes <larsbj@birdstep.com>
* insettext.C (InsetText): initalize newly created par with
// write it to a file (so far the complete file)
string writefile = ChangeExtension(getFileName(), ".sgml");
- if (!buffer->tmppath.empty() && buffer->niceFile) {
+ if (!buffer->tmppath.empty() && !buffer->niceFile) {
incfile = subst(incfile, '/','@');
writefile = AddName(buffer->tmppath, incfile);
} else
// write it to a file (so far the complete file)
string writefile = ChangeExtension(getFileName(), ".sgml");
- if (!buffer->tmppath.empty() && buffer->niceFile) {
+ if (!buffer->tmppath.empty() && !buffer->niceFile) {
incfile = subst(incfile, '/','@');
writefile = AddName(buffer->tmppath, incfile);
} else
Buffer const * const b = bufferlist.getBuffer(getMasterFilename());
- if (b && !b->tmppath.empty() && b->niceFile && !isVerbatim()) {
+ if (b && !b->tmppath.empty() && !b->niceFile && !isVerbatim()) {
incfile = subst(incfile, '/','@');
writefile = AddName(b->tmppath, incfile);
} else