From a23f710d557ff6dae06e8fcf45e7010c6458cfc8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Matox?= Date: Wed, 13 Oct 2004 22:15:32 +0000 Subject: [PATCH] Docbook - fix closing tags in the end of the document. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9089 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/ChangeLog | 4 ++++ src/output_docbook.C | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index c8941f14b9..3897f5ebf2 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2004-10-13 José Matos + + * output_docbook.C (docbookParagraphs): fix closing tags in the end of the document. + 2004-10-09 José Matos * buffer.C: format up to 237. diff --git a/src/output_docbook.C b/src/output_docbook.C index de47d99b0f..a5285e51b1 100644 --- a/src/output_docbook.C +++ b/src/output_docbook.C @@ -252,8 +252,8 @@ void docbookParagraphs(Buffer const & buf, // Close open tags for (int d = depth; d >= 0; --d) { if (!environment_stack[depth].empty()) { - sgml::closeEnvTags(os, false, environment_inner[depth], - item_tag, command_depth + depth); + sgml::closeEnvTags(os, false, environment_inner[d], item_tag, command_depth + d); + sgml::closeTag(os, d + command_depth, false, environment_stack[d]); } } -- 2.39.2