Permalink
Browse files

Fix issue escaping backslash inside markdown style code span

  • Loading branch information...
Dimitri van Heesch
Dimitri van Heesch committed Jul 23, 2016
1 parent 10256be commit 402970f77f961b85b6371c8e53bd69981435c2d7
Showing with 2 additions and 1 deletion.
  1. +1 −1 doc/install.doc
  2. +1 −0 src/markdown.cpp
View
@@ -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.
View
@@ -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;
}

0 comments on commit 402970f

Please sign in to comment.