summaryrefslogtreecommitdiffstats
path: root/src/commentcnv.l
diff options
context:
space:
mode:
authordimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2010-08-22 19:30:14 (GMT)
committerdimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2010-08-22 19:30:14 (GMT)
commitce8facca2c23f4656747ad3a5b4a8db475855e27 (patch)
treee5faa5e8d675f525b1cd2f397645136f8193b36f /src/commentcnv.l
parentf0e47672cc3f910aebd1d30fe3db21e9dbd943c4 (diff)
downloadDoxygen-ce8facca2c23f4656747ad3a5b4a8db475855e27.zip
Doxygen-ce8facca2c23f4656747ad3a5b4a8db475855e27.tar.gz
Doxygen-ce8facca2c23f4656747ad3a5b4a8db475855e27.tar.bz2
Release-1.7.1-20100822
Diffstat (limited to 'src/commentcnv.l')
-rw-r--r--src/commentcnv.l11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/commentcnv.l b/src/commentcnv.l
index ab56812..660dae6 100644
--- a/src/commentcnv.l
+++ b/src/commentcnv.l
@@ -468,6 +468,17 @@ void replaceComment(int offset);
<Verbatim,VerbatimCode>\n { /* new line in verbatim block */
copyToOutput(yytext,yyleng);
}
+<Verbatim,VerbatimCode>^[ \t]*"///" {
+ if (g_blockName=="dot" || g_blockName=="msc" || g_blockName.at(0)=='f')
+ {
+ // see bug 487871, strip /// from dot images and formulas.
+ copyToOutput(" ",3);
+ }
+ else // even slashes are verbatim (e.g. \verbatim, \code)
+ {
+ REJECT;
+ }
+ }
<Verbatim,VerbatimCode>. { /* any other character */
copyToOutput(yytext,yyleng);
}