summaryrefslogtreecommitdiffstats
path: root/src/definition.cpp
diff options
context:
space:
mode:
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
{