summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2020-06-13 13:07:52 (GMT)
committerGitHub <noreply@github.com>2020-06-13 13:07:52 (GMT)
commit65bf92c94f2118b0f6e6c19e62993c6e27ebbef9 (patch)
tree3b3bfa97fc60ee31acb58058b7b2b42ed22db30b
parent22d8ffd11ad8b864941ba73f2161622d693f4f49 (diff)
downloadDoxygen-65bf92c94f2118b0f6e6c19e62993c6e27ebbef9.zip
Doxygen-65bf92c94f2118b0f6e6c19e62993c6e27ebbef9.tar.gz
Doxygen-65bf92c94f2118b0f6e6c19e62993c6e27ebbef9.tar.bz2
issue #7796 Backticks (`) in Doxygen-markup-in-C in Markdown collapses (#7797)
* issue #7796 Backticks (`) in Doxygen-markup-in-C in Markdown collapses The problem occurs when the backtick is just before the end of line. The fenced block will only terminate when the same number of fence characters are present, otherwise the search will continue. * issue #7796 Backticks (`) in Doxygen-markup-in-C in Markdown collapses Removed unintentional tab.
-rw-r--r--src/markdown.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/markdown.cpp b/src/markdown.cpp
index c4dd9fb..06b714a 100644
--- a/src/markdown.cpp
+++ b/src/markdown.cpp
@@ -1501,8 +1501,11 @@ static bool isFencedCodeBlock(const char *data,int size,int refIndent,
while (i<size && data[i]==' ') i++;
if (i==size || data[i]=='\n')
{
- offset=i;
- return endTildes==startTildes;
+ if (endTildes==startTildes)
+ {
+ offset=i;
+ return TRUE;
+ }
}
}
i++;