summaryrefslogtreecommitdiffstats
path: root/src/xmldocvisitor.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2004-05-07 12:56:01 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2004-05-07 12:56:01 (GMT)
commit64ab36082a9cb658fd54c2b76fdf1a9b40ed7b74 (patch)
treec35eb3a8d51696f3a4cddc5f0e8d484466382833 /src/xmldocvisitor.cpp
parent08b4b96ea20ded173b851aeb452c5d3c98e08cc4 (diff)
downloadDoxygen-64ab36082a9cb658fd54c2b76fdf1a9b40ed7b74.zip
Doxygen-64ab36082a9cb658fd54c2b76fdf1a9b40ed7b74.tar.gz
Doxygen-64ab36082a9cb658fd54c2b76fdf1a9b40ed7b74.tar.bz2
Release-1.3.7
Diffstat (limited to 'src/xmldocvisitor.cpp')
-rw-r--r--src/xmldocvisitor.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/xmldocvisitor.cpp b/src/xmldocvisitor.cpp
index a128a00..ae853b4 100644
--- a/src/xmldocvisitor.cpp
+++ b/src/xmldocvisitor.cpp
@@ -445,7 +445,9 @@ void XmlDocVisitor::visitPost(DocSimpleListItem *)
void XmlDocVisitor::visitPre(DocSection *s)
{
if (m_hide) return;
- m_t << "<sect" << s->level() << " id=\"" << s->id() << "\">" << endl;
+ m_t << "<sect" << s->level() << " id=\"" << s->file();
+ if (!s->anchor().isEmpty()) m_t << "_1" << s->anchor();
+ m_t << "\">" << endl;
m_t << "<title>";
filter(s->title());
m_t << "</title>" << endl;