diff options
author | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2012-03-17 20:32:54 (GMT) |
---|---|---|
committer | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2012-03-17 20:32:54 (GMT) |
commit | 6cbcbc787daeae62ce59c04bbc35597986bcca7d (patch) | |
tree | 5c9d2280ca0cb07840bfa26ca4dbed5b3225d21f /src/docsets.cpp | |
parent | c3a03d5cb1f856d2b3a7bff8ddf74416a1281f66 (diff) | |
download | Doxygen-6cbcbc787daeae62ce59c04bbc35597986bcca7d.zip Doxygen-6cbcbc787daeae62ce59c04bbc35597986bcca7d.tar.gz Doxygen-6cbcbc787daeae62ce59c04bbc35597986bcca7d.tar.bz2 |
Release-1.8.0
Diffstat (limited to 'src/docsets.cpp')
-rw-r--r-- | src/docsets.cpp | 9 |
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; |