Commit bc61f00f authored by Dimitri van Heesch's avatar Dimitri van Heesch

Bug 692985 - Notes in xml output are not correctly separated

parent 653a2a8b
...@@ -473,7 +473,6 @@ ...@@ -473,7 +473,6 @@
<xsd:element name="title" type="docTitleType" minOccurs="0" /> <xsd:element name="title" type="docTitleType" minOccurs="0" />
<xsd:sequence minOccurs="0" maxOccurs="unbounded"> <xsd:sequence minOccurs="0" maxOccurs="unbounded">
<xsd:element name="para" type="docParaType" minOccurs="1" maxOccurs="unbounded" /> <xsd:element name="para" type="docParaType" minOccurs="1" maxOccurs="unbounded" />
<xsd:element name="simplesectsep" type="docEmptyType" minOccurs="0"/>
</xsd:sequence> </xsd:sequence>
</xsd:sequence> </xsd:sequence>
<xsd:attribute name="kind" type="DoxSimpleSectKind" /> <xsd:attribute name="kind" type="DoxSimpleSectKind" />
......
...@@ -337,9 +337,13 @@ void XmlDocVisitor::visit(DocIndexEntry *ie) ...@@ -337,9 +337,13 @@ void XmlDocVisitor::visit(DocIndexEntry *ie)
"</indexentry>"; "</indexentry>";
} }
void XmlDocVisitor::visit(DocSimpleSectSep *) void XmlDocVisitor::visit(DocSimpleSectSep *sep)
{ {
m_t << "<simplesectsep/>"; 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) void XmlDocVisitor::visit(DocCite *cite)
......
...@@ -7,7 +7,8 @@ ...@@ -7,7 +7,8 @@
<para> <para>
<simplesect kind="author"> <simplesect kind="author">
<para>John Doe </para> <para>John Doe </para>
<simplesectsep/> </simplesect>
<simplesect kind="author">
<para>Jane Doe </para> <para>Jane Doe </para>
</simplesect> </simplesect>
<simplesect kind="authors"> <simplesect kind="authors">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment