Skip to content

Commit

Permalink
Fix issue escaping backslash inside markdown style code span
Browse files Browse the repository at this point in the history
  • Loading branch information
Dimitri van Heesch committed Jul 23, 2016
1 parent 10256be commit 402970f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion doc/install.doc
Expand Up @@ -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.
Expand Down
1 change: 1 addition & 0 deletions src/markdown.cpp
Expand Up @@ -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;
}
Expand Down

0 comments on commit 402970f

Please sign in to comment.