summaryrefslogtreecommitdiffstats
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
parent10256be351f8f00ba5986750a08df1108bf6a4f7 (diff)
downloadDoxygen-402970f77f961b85b6371c8e53bd69981435c2d7.zip
Doxygen-402970f77f961b85b6371c8e53bd69981435c2d7.tar.gz
Doxygen-402970f77f961b85b6371c8e53bd69981435c2d7.tar.bz2
Fix issue escaping backslash inside markdown style code span
-rw-r--r--doc/install.doc2
-rw-r--r--src/markdown.cpp1
2 files changed, 2 insertions, 1 deletions
diff --git a/doc/install.doc b/doc/install.doc
index 16ed67c..5a73f5b 100644
--- a/doc/install.doc
+++ b/doc/install.doc
@@ -106,7 +106,7 @@ Compilation is now done by performing the following steps:
<li>Optional: Generate the user manual.
- cmake -Dbuild_doc=YES
+ cmake -Dbuild_doc=YES ..
make docs
To let doxygen generate the HTML and PDF documentation.
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;
}