summaryrefslogtreecommitdiffstats
path: root/src/definition.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/definition.cpp
parentcff8111ed33af6033bd188868964d92ea3503188 (diff)
downloadDoxygen-b1800e6e8923c5a1eeefb136103811135d5813bf.zip
Doxygen-b1800e6e8923c5a1eeefb136103811135d5813bf.tar.gz
Doxygen-b1800e6e8923c5a1eeefb136103811135d5813bf.tar.bz2
Release-1.8.0
Diffstat (limited to 'src/definition.cpp')
-rw-r--r--src/definition.cpp13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/definition.cpp b/src/definition.cpp
index b917cfe..18e6253 100644
--- a/src/definition.cpp
+++ b/src/definition.cpp
@@ -377,13 +377,20 @@ void Definition::addSectionsToIndex()
{
//printf(" level=%d title=%s\n",level,si->title.data());
int nextLevel = (int)si->type;
+ int i;
if (nextLevel>level)
{
- Doxygen::indexList.incContentsDepth();
+ for (i=level;i<nextLevel;i++)
+ {
+ Doxygen::indexList.incContentsDepth();
+ }
}
else if (nextLevel<level)
{
- Doxygen::indexList.decContentsDepth();
+ for (i=nextLevel;i<level;i++)
+ {
+ Doxygen::indexList.decContentsDepth();
+ }
}
Doxygen::indexList.addContentsItem(TRUE,si->title,
getReference(),
@@ -508,7 +515,7 @@ void Definition::_setDocumentation(const char *d,const char *docFile,int docLine
QCString doc = d;
if (stripWhiteSpace)
{
- doc = stripLeadingAndTrailingEmptyLines(doc);
+ doc = stripLeadingAndTrailingEmptyLines(doc,docLine);
}
else // don't strip whitespace
{