summaryrefslogtreecommitdiffstats
path: root/src/docsets.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2012-03-17 20:32:54 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2012-03-17 20:32:54 (GMT)
commitb1800e6e8923c5a1eeefb136103811135d5813bf (patch)
tree5c9d2280ca0cb07840bfa26ca4dbed5b3225d21f /src/docsets.cpp
parentcff8111ed33af6033bd188868964d92ea3503188 (diff)
downloadDoxygen-b1800e6e8923c5a1eeefb136103811135d5813bf.zip
Doxygen-b1800e6e8923c5a1eeefb136103811135d5813bf.tar.gz
Doxygen-b1800e6e8923c5a1eeefb136103811135d5813bf.tar.bz2
Release-1.8.0
Diffstat (limited to 'src/docsets.cpp')
-rw-r--r--src/docsets.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/docsets.cpp b/src/docsets.cpp
index 272ed69..6852c41 100644
--- a/src/docsets.cpp
+++ b/src/docsets.cpp
@@ -163,7 +163,10 @@ void DocSets::initialize()
void DocSets::finalize()
{
- m_nts << indent() << " </Node>" << endl;
+ if (!m_firstNode.at(m_dc-1))
+ {
+ m_nts << indent() << " </Node>" << endl;
+ }
m_dc--;
m_nts << " </Subnodes>" << endl;
m_nts << " </Node>" << endl;
@@ -225,7 +228,9 @@ void DocSets::addContentsItem(bool isDir,
m_firstNode.at(m_dc-1)=FALSE;
m_nts << indent() << " <Node>" << endl;
m_nts << indent() << " <Name>" << convertToXML(name) << "</Name>" << endl;
- m_nts << indent() << " <Path>" << file << Doxygen::htmlFileExtension << "</Path>" << endl;
+ m_nts << indent() << " <Path>";
+ m_nts << file << Doxygen::htmlFileExtension;
+ m_nts << "</Path>" << endl;
if (anchor)
{
m_nts << indent() << " <Anchor>" << anchor << "</Anchor>" << endl;