]> git.lyx.org Git - features.git/commitdiff
Docbook - fix closing tags in the end of the document.
authorJosé Matox <jamatos@lyx.org>
Wed, 13 Oct 2004 22:15:32 +0000 (22:15 +0000)
committerJosé Matox <jamatos@lyx.org>
Wed, 13 Oct 2004 22:15:32 +0000 (22:15 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9089 a592a061-630c-0410-9148-cb99ea01b6c8

src/ChangeLog
src/output_docbook.C

index c8941f14b9249ad7b41be2685cc48dd46dea3095..3897f5ebf2d029c8608a7ccfc7a395e167eaac3b 100644 (file)
@@ -1,3 +1,7 @@
+2004-10-13  José Matos  <jamatos@lyx.org>
+
+       * output_docbook.C (docbookParagraphs): fix closing tags in the end of the document.
+
 2004-10-09  José Matos  <jamatos@lyx.org>
 
        * buffer.C: format up to 237.
index de47d99b0f6d32ad4d133cccaabac94ab59b24ba..a5285e51b185fe7a670f2972e2f9b85ea606a4ba 100644 (file)
@@ -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]);
                }
        }