Fix docbook export (bug 821)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7120 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
José Matox 2003-06-06 11:28:12 +00:00
parent c516046c9c
commit 2b3afd014d
2 changed files with 5 additions and 1 deletions

View 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> 2003-06-06 Alfredo Braunstein <abraunst@libero.it>
* BufferView_pimpl.C (dispatch): use Dialogs::visible * BufferView_pimpl.C (dispatch): use Dialogs::visible

View File

@ -1644,7 +1644,7 @@ void Buffer::makeDocBookFile(string const & fname, bool nice, bool only_body)
// environment tag closing // environment tag closing
for (; depth > par->params().depth(); --depth) { for (; depth > par->params().depth(); --depth) {
if (environment_inner[depth] != "!-- --") { if (environment_inner[depth] != "!-- --" && !environment_inner[depth].empty()) {
item_name = "listitem"; item_name = "listitem";
sgml::closeTag(ofs, command_depth + depth, false, item_name); sgml::closeTag(ofs, command_depth + depth, false, item_name);
if (environment_inner[depth] == "varlistentry") if (environment_inner[depth] == "varlistentry")