summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2014-01-08 15:01:13 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2014-01-08 15:01:13 (GMT)
commitb4b40f4c7ea57655d1264e8f72c754526e3a9209 (patch)
tree91d568ff3ea9d8e0a0f056fdf613e79e3eefd22e /src
parent68080883535bb146e2e4f65943c8b836da6b68e0 (diff)
downloadDoxygen-b4b40f4c7ea57655d1264e8f72c754526e3a9209.zip
Doxygen-b4b40f4c7ea57655d1264e8f72c754526e3a9209.tar.gz
Doxygen-b4b40f4c7ea57655d1264e8f72c754526e3a9209.tar.bz2
Bug 683115 - Command ignored when using umlauts in markdown and also C-comments in markdown didn't work properly
Diffstat (limited to 'src')
-rw-r--r--src/commentcnv.l4
-rw-r--r--src/markdown.cpp9
2 files changed, 3 insertions, 10 deletions
diff --git a/src/commentcnv.l b/src/commentcnv.l
index daec1e2..6433974 100644
--- a/src/commentcnv.l
+++ b/src/commentcnv.l
@@ -615,9 +615,9 @@ void replaceComment(int offset);
}
else
{
+ copyToOutput(yytext,(int)yyleng);
if (g_nestingCount<=0)
{
- copyToOutput(yytext,(int)yyleng);
BEGIN(Scan);
}
else
@@ -977,7 +977,7 @@ void convertCppComments(BufStr *inBuf,BufStr *outBuf,const char *fileName)
warn(g_fileName,ctx->lineNr,"Conditional section%sdoes not have "
"a corresponding \\endcond command within this file.",sectionInfo.data());
}
- if (g_nestingCount>0 || YY_START==CComment)
+ if (g_nestingCount>0 || (YY_START==CComment && g_lang!=SrcLangExt_Markdown))
{
warn(g_fileName,g_lineNr,"Reached end of file while still inside a (nested) comment. "
"Nesting level %d",g_nestingCount+1); // add one for "normal" expected end of comment
diff --git a/src/markdown.cpp b/src/markdown.cpp
index ac824f4..85d3c83 100644
--- a/src/markdown.cpp
+++ b/src/markdown.cpp
@@ -2279,14 +2279,7 @@ void MarkdownFileParser::parseInput(const char *fileName,
current->fileName = fileName;
current->docFile = fileName;
current->docLine = 1;
- int len = qstrlen(fileBuf);
- BufStr input(len);
- BufStr output(len);
- input.addArray(fileBuf,qstrlen(fileBuf));
- input.addChar('\0');
- convertCppComments(&input,&output,fileName);
- output.addChar('\0');
- QCString docs = output.data();
+ QCString docs = fileBuf;
QCString id;
QCString title=extractPageTitle(docs,id).stripWhiteSpace();
QCString titleFn = QFileInfo(fileName).baseName().utf8();