summaryrefslogtreecommitdiffstats
path: root/src/markdown.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2016-07-23 11:46:05 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2016-07-23 11:46:05 (GMT)
commit402970f77f961b85b6371c8e53bd69981435c2d7 (patch)
tree40155b696ec49b97c8186f95feed0cc1795aed8c /src/markdown.cpp
parent10256be351f8f00ba5986750a08df1108bf6a4f7 (diff)
downloadDoxygen-402970f77f961b85b6371c8e53bd69981435c2d7.zip
Doxygen-402970f77f961b85b6371c8e53bd69981435c2d7.tar.gz
Doxygen-402970f77f961b85b6371c8e53bd69981435c2d7.tar.bz2
Fix issue escaping backslash inside markdown style code span
Diffstat (limited to 'src/markdown.cpp')
-rw-r--r--src/markdown.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/markdown.cpp b/src/markdown.cpp
index 84e52ba..9526ce2 100644
--- a/src/markdown.cpp
+++ b/src/markdown.cpp
@@ -122,6 +122,7 @@ static QCString escapeSpecialChars(const QCString &s)
case '"': if (pc!='\\') { insideQuote=!insideQuote; } growBuf.addChar(c); break;
case '<': if (!insideQuote) { growBuf.addChar('\\'); } growBuf.addChar('<'); break;
case '>': if (!insideQuote) { growBuf.addChar('\\'); } growBuf.addChar('>'); break;
+ case '\\': if (!insideQuote) { growBuf.addChar('\\'); } growBuf.addChar('\\'); break;
case '@': if (!insideQuote) { growBuf.addChar('\\'); } growBuf.addChar('@'); break;
default: growBuf.addChar(c); break;
}