summaryrefslogtreecommitdiffstats
path: root/src/definition.cpp
diff options
context:
space:
mode:
authordimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2003-06-09 19:58:49 (GMT)
committerdimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2003-06-09 19:58:49 (GMT)
commitd863498bbf7129c5d7f4984ca00adf378aac246d (patch)
treebc980e351fc747c41720cca5f31affe4f27c3a31 /src/definition.cpp
parent0aa47e2a30513b04d1041d528f468d3434a81558 (diff)
downloadDoxygen-d863498bbf7129c5d7f4984ca00adf378aac246d.zip
Doxygen-d863498bbf7129c5d7f4984ca00adf378aac246d.tar.gz
Doxygen-d863498bbf7129c5d7f4984ca00adf378aac246d.tar.bz2
Release-1.3.1-20030609
Diffstat (limited to 'src/definition.cpp')
-rw-r--r--src/definition.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/definition.cpp b/src/definition.cpp
index ad50412..5692f88 100644
--- a/src/definition.cpp
+++ b/src/definition.cpp
@@ -126,7 +126,7 @@ void Definition::writeDocAnchorsToTagFile()
void Definition::setDocumentation(const char *d,const char *docFile,int docLine,bool stripWhiteSpace)
{
if (d==0) return;
- //printf("Definition::setDocumentation(%s,%s,%d)\n",d,docFile,docLine);
+ //printf("Definition::setDocumentation(%s,%s,%d,%d)\n",d,docFile,docLine,stripWhiteSpace);
if (stripWhiteSpace)
{
// strip leading empty lines in front of the text, but not the
@@ -141,6 +141,7 @@ void Definition::setDocumentation(const char *d,const char *docFile,int docLine,
p++;
s++;
}
+ if (c=='\0') return;
m_doc=d+so;
// zero any trailing whitespace
int e=m_doc.length()-1;
@@ -150,8 +151,11 @@ void Definition::setDocumentation(const char *d,const char *docFile,int docLine,
e--;
}
}
- else
+ else // don't strip whitespace
+ {
m_doc=d;
+ }
+ //printf("setting docs for %s: `%s'\n",name().data(),m_doc.data());
m_docFile = docFile;
m_docLine = docLine;
}