summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2019-09-16 18:39:01 (GMT)
committerDimitri van Heesch <doxygen@gmail.com>2019-09-16 18:39:01 (GMT)
commit21a07f02210364e270caa8b66852b0816bff2a5b (patch)
tree798d24910e6bd77efb3419f82074c4f02edc64c2 /src
parentae4608f5dfadc7c43e047fc5ffb13598c2b3094a (diff)
parent0f90a399a886ea7f69bf482415e6c4cdcb7269b3 (diff)
downloadDoxygen-21a07f02210364e270caa8b66852b0816bff2a5b.zip
Doxygen-21a07f02210364e270caa8b66852b0816bff2a5b.tar.gz
Doxygen-21a07f02210364e270caa8b66852b0816bff2a5b.tar.bz2
Merge branch 'albert-github-feature/bug_html_comment'
Diffstat (limited to 'src')
-rw-r--r--src/markdown.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/markdown.cpp b/src/markdown.cpp
index 6fea0a6..e63bf10 100644
--- a/src/markdown.cpp
+++ b/src/markdown.cpp
@@ -480,7 +480,7 @@ static int processNmdash(GrowBuf &out,const char *data,int off,int size)
{
count++;
}
- if (count==2 && off>=2 && qstrncmp(data-2,"<!",2)==0) return 0; // start HTML comment
+ if (count>=2 && off>=2 && qstrncmp(data-2,"<!",2)==0) return 1-count; // start HTML comment
if (count==2 && (data[2]=='>')) return 0; // end HTML comment
if (count==2 && (off<8 || qstrncmp(data-8,"operator",8)!=0)) // -- => ndash
{
@@ -1084,9 +1084,9 @@ static void processInline(GrowBuf &out,const char *data,int size)
if (end>=size) break;
i=end;
end = action(out,data+i,i,size-i);
- if (!end)
+ if (end<=0)
{
- end=i+1;
+ end=i+1-end;
}
else
{