summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2013-12-10 18:59:23 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2013-12-10 18:59:23 (GMT)
commitc5ae197818ae4d5f669a32981060779edbc8a376 (patch)
tree98f53a338cbaaa532381780d8a1c2c43e54dcdb0
parent40b84627bdad3b1e03c0a6c603c6a7e299ce04c0 (diff)
downloadDoxygen-c5ae197818ae4d5f669a32981060779edbc8a376.zip
Doxygen-c5ae197818ae4d5f669a32981060779edbc8a376.tar.gz
Doxygen-c5ae197818ae4d5f669a32981060779edbc8a376.tar.bz2
doxygen /** style creates spurious code blocks with markdown enabled
-rw-r--r--src/markdown.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/markdown.cpp b/src/markdown.cpp
index eb5a2a2..2a6d9d3 100644
--- a/src/markdown.cpp
+++ b/src/markdown.cpp
@@ -1974,6 +1974,9 @@ static QCString processBlocks(const QCString &s,int indent)
end++;
}
+#if 0 // commented out, since starting with a comment block is probably a usage error
+ // see also http://stackoverflow.com/q/20478611/784672
+
// special case when the documentation starts with a code block
// since the first line is skipped when looking for a code block later on.
if (end>codeBlockIndent && isCodeBlock(data,0,end,blockIndent))
@@ -1982,6 +1985,7 @@ static QCString processBlocks(const QCString &s,int indent)
end=i+1;
pi=-1;
}
+#endif
// process each line
while (i<size)