]> git.lyx.org Git - features.git/commitdiff
Fix docbook export (bug 821)
authorJosé Matox <jamatos@lyx.org>
Fri, 6 Jun 2003 11:28:12 +0000 (11:28 +0000)
committerJosé Matox <jamatos@lyx.org>
Fri, 6 Jun 2003 11:28:12 +0000 (11:28 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7120 a592a061-630c-0410-9148-cb99ea01b6c8

src/ChangeLog
src/buffer.C

index 35fff47a8f2b2ff2dbff941dc693d126f3575a94..14da15ca4f2a4427b8f78c7ab0df75c322faae03 100644 (file)
@@ -1,3 +1,7 @@
+2003-06-06  José Matos  <jamatos@fep.up.pt>
+
+       * buffer.C (makeDocBookFile): fix bug #821
+
 2003-06-06  Alfredo Braunstein  <abraunst@libero.it>
 
        * BufferView_pimpl.C (dispatch): use Dialogs::visible
index 258410f184ab6fd161a3047d3de99c6ff0d4baef..0562d3e7a84fab8c20cfca90fc4c3fabe8767ce4 100644 (file)
@@ -1644,7 +1644,7 @@ void Buffer::makeDocBookFile(string const & fname, bool nice, bool only_body)
 
                // environment tag closing
                for (; depth > par->params().depth(); --depth) {
-                       if (environment_inner[depth] != "!-- --") {
+                       if (environment_inner[depth] != "!-- --" && !environment_inner[depth].empty()) {
                                item_name = "listitem";
                                sgml::closeTag(ofs, command_depth + depth, false, item_name);
                                if (environment_inner[depth] == "varlistentry")