From 2b3afd014dd0753ddcf71674fba923c93268e8bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Matox?= Date: Fri, 6 Jun 2003 11:28:12 +0000 Subject: [PATCH] Fix docbook export (bug 821) git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7120 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/ChangeLog | 4 ++++ src/buffer.C | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index 35fff47a8f..14da15ca4f 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2003-06-06 José Matos + + * buffer.C (makeDocBookFile): fix bug #821 + 2003-06-06 Alfredo Braunstein * BufferView_pimpl.C (dispatch): use Dialogs::visible diff --git a/src/buffer.C b/src/buffer.C index 258410f184..0562d3e7a8 100644 --- a/src/buffer.C +++ b/src/buffer.C @@ -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")