diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2012-06-10 09:28:22 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2012-06-10 09:28:22 (GMT) |
commit | 0ce3aea886f4e95da56d164b3944fd54d3d68f89 (patch) | |
tree | 6709ddc7b1764dc3b20bbac7eb36c05edcc91e03 /src/markdown.cpp | |
parent | 1983c30b71bf92b3fa6bfedbb98451c3b7f74498 (diff) | |
download | Doxygen-0ce3aea886f4e95da56d164b3944fd54d3d68f89.zip Doxygen-0ce3aea886f4e95da56d164b3944fd54d3d68f89.tar.gz Doxygen-0ce3aea886f4e95da56d164b3944fd54d3d68f89.tar.bz2 |
Release-1.8.1.1
Diffstat (limited to 'src/markdown.cpp')
-rw-r--r-- | src/markdown.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/markdown.cpp b/src/markdown.cpp index bb1a5a3..559828f 100644 --- a/src/markdown.cpp +++ b/src/markdown.cpp @@ -1339,6 +1339,11 @@ static bool isCodeBlock(const char *data,int offset,int size,int &indent) //printf(">isCodeBlock: line is not indented enough %d<4\n",indent0); return FALSE; } + if (indent0>=size || data[indent0]=='\n') // empty line does not start a code block + { + //printf("only spaces at the end of a comment block\n"); + return FALSE; + } i=offset; int nl=0; @@ -1382,8 +1387,8 @@ static bool isCodeBlock(const char *data,int offset,int size,int &indent) { return FALSE; } - //printf(">isCodeBlock global indent %d>=%d+4=%d\n", - // indent0,indent,indent0>=indent+4); + //printf(">isCodeBlock global indent %d>=%d+4=%d nl=%d\n", + // indent0,indent,indent0>=indent+4,nl); return indent0>=indent+codeBlockIndent; } } @@ -2121,6 +2126,7 @@ static QCString detab(const QCString &s,int &refIndent) } if (minIndent!=maxIndent) refIndent=minIndent; else refIndent=0; out.addChar(0); + //printf("detab refIndent=%d\n",refIndent); return out.get(); } |