summaryrefslogtreecommitdiffstats
path: root/src/markdown.cpp
diff options
context:
space:
mode:
authordimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2012-12-26 15:59:17 (GMT)
committerdimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2012-12-26 15:59:17 (GMT)
commit11adf0849f31d1bfcca9fe95ab76aa4eb92df03e (patch)
tree629c4681a5158d26512b815623754b33165d8d23 /src/markdown.cpp
parent1a68946cfa3e3ee749a683fdabc93e6b5311adeb (diff)
downloadDoxygen-11adf0849f31d1bfcca9fe95ab76aa4eb92df03e.zip
Doxygen-11adf0849f31d1bfcca9fe95ab76aa4eb92df03e.tar.gz
Doxygen-11adf0849f31d1bfcca9fe95ab76aa4eb92df03e.tar.bz2
Release-1.8.3
Diffstat (limited to 'src/markdown.cpp')
-rw-r--r--src/markdown.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/markdown.cpp b/src/markdown.cpp
index 2571a1a..15b36a3 100644
--- a/src/markdown.cpp
+++ b/src/markdown.cpp
@@ -299,6 +299,10 @@ static int findEmphasisChar(const char *data, int size, char c, int c_size)
i++;
}
}
+ else if (i<size-1 && isIdChar(i+1)) // @cmd, stop processing, see bug 690385
+ {
+ return 0;
+ }
else
{
i++;
@@ -1700,7 +1704,8 @@ static int writeBlockQuote(GrowBuf &out,const char *data,int size)
else if (j>0 && data[j-1]=='>') indent=j+1;
j++;
}
- if (j>0 && data[j-1]=='>') // disqualify last > if not followed by space
+ if (j>0 && data[j-1]=='>' &&
+ !(j==size || data[j]=='\n')) // disqualify last > if not followed by space
{
indent--;
j--;