From bc61f00f142792dfbe97c361d9fecd3ea2850f5e Mon Sep 17 00:00:00 2001 From: Dimitri van Heesch Date: Sat, 19 Apr 2014 20:12:41 +0200 Subject: Bug 692985 - Notes in xml output are not correctly separated --- src/compound.xsd | 1 - src/xmldocvisitor.cpp | 8 ++++++-- testing/006/indexpage.xml | 3 ++- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/compound.xsd b/src/compound.xsd index a1c9784..2521a2e 100644 --- a/src/compound.xsd +++ b/src/compound.xsd @@ -473,7 +473,6 @@ - diff --git a/src/xmldocvisitor.cpp b/src/xmldocvisitor.cpp index cab4578..f74a6a2 100644 --- a/src/xmldocvisitor.cpp +++ b/src/xmldocvisitor.cpp @@ -337,9 +337,13 @@ void XmlDocVisitor::visit(DocIndexEntry *ie) ""; } -void XmlDocVisitor::visit(DocSimpleSectSep *) +void XmlDocVisitor::visit(DocSimpleSectSep *sep) { - m_t << ""; + if (sep->parent() && sep->parent()->kind()==DocNode::Kind_SimpleSect) + { + visitPost((DocSimpleSect*)sep->parent()); // end current section + visitPre((DocSimpleSect*)sep->parent()); // start new section + } } void XmlDocVisitor::visit(DocCite *cite) diff --git a/testing/006/indexpage.xml b/testing/006/indexpage.xml index edb2904..1afe69b 100644 --- a/testing/006/indexpage.xml +++ b/testing/006/indexpage.xml @@ -7,7 +7,8 @@ John Doe - + + Jane Doe -- cgit v0.12