summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2018-06-10 09:15:32 (GMT)
committerGitHub <noreply@github.com>2018-06-10 09:15:32 (GMT)
commit4536982bdebc0056d0c5d64a12881f20b5801c06 (patch)
treec9a34b73cb1edf03f2a0daf831ff50970b965309 /src
parent55735feae7530d1650b95f96d33448d64076f476 (diff)
parentf7663cf300375b4ec8d8fe052f3da48782743919 (diff)
downloadDoxygen-4536982bdebc0056d0c5d64a12881f20b5801c06.zip
Doxygen-4536982bdebc0056d0c5d64a12881f20b5801c06.tar.gz
Doxygen-4536982bdebc0056d0c5d64a12881f20b5801c06.tar.bz2
Merge pull request #714 from albert-github/feature/bug_test_cond
Problem with \cond in normal comment of test 015
Diffstat (limited to 'src')
-rw-r--r--src/commentcnv.l2
-rw-r--r--src/pre.l2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/commentcnv.l b/src/commentcnv.l
index 89d2fea..10dab28 100644
--- a/src/commentcnv.l
+++ b/src/commentcnv.l
@@ -1068,7 +1068,7 @@ void convertCppComments(BufStr *inBuf,BufStr *outBuf,const char *fileName)
{
CondCtx *ctx = g_condStack.pop();
QCString sectionInfo = " ";
- if (ctx->sectionId!=" ") sectionInfo.sprintf(" with label %s ",ctx->sectionId.data());
+ if (ctx->sectionId!=" ") sectionInfo.sprintf(" with label '%s' ",ctx->sectionId.stripWhiteSpace().data());
warn(g_fileName,ctx->lineNr,"Conditional section%sdoes not have "
"a corresponding \\endcond command within this file.",sectionInfo.data());
}
diff --git a/src/pre.l b/src/pre.l
index bf1ec9b..37f7115 100644
--- a/src/pre.l
+++ b/src/pre.l
@@ -3195,7 +3195,7 @@ void preprocessFile(const char *fileName,BufStr &input,BufStr &output)
{
CondCtx *ctx = g_condStack.pop();
QCString sectionInfo = " ";
- if (ctx->sectionId!=" ") sectionInfo.sprintf(" with label %s ",ctx->sectionId.data());
+ if (ctx->sectionId!=" ") sectionInfo.sprintf(" with label '%s' ",ctx->sectionId.stripWhiteSpace().data());
warn(fileName,ctx->lineNr,"Conditional section%sdoes not have "
"a corresponding \\endcond command within this file.",sectionInfo.data());
delete ctx;