diff options
author | albert-github <albert.tests@gmail.com> | 2020-04-26 07:22:50 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-26 07:22:50 (GMT) |
commit | d52e170500d1f532b8c45fcf5947d4d1e805febb (patch) | |
tree | 40d680f8f4ea37bb3ab1bb1e5cee4fea75be47f4 | |
parent | 869f979013dab134ff5292fec21c7610516d514d (diff) | |
download | Doxygen-d52e170500d1f532b8c45fcf5947d4d1e805febb.zip Doxygen-d52e170500d1f532b8c45fcf5947d4d1e805febb.tar.gz Doxygen-d52e170500d1f532b8c45fcf5947d4d1e805febb.tar.bz2 |
Inconsistent behavior between `///` and `//!` for formulas (#7726)
When we have code like:
```
//!
//! \f$a \times
//! c \f$
//!
```
this will throw a warning like:
```
warning: End of comment block while inside formula.
```
due to the fact that after the comment conversion the code is like:
```
/**
* \f$a \times
//! c \f$
* */
```
Comparing to the `///` comments:
```
///
/// \f$a \times
/// c \f$
///
```
we get
```
/**
* \f$a \times
c \f$
* */
```
This discrepancy has been removed.
-rw-r--r-- | src/commentcnv.l | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/commentcnv.l b/src/commentcnv.l index 59d1a8b..63ecaaf 100644 --- a/src/commentcnv.l +++ b/src/commentcnv.l @@ -488,7 +488,7 @@ MAILADR ("mailto:")?[a-z_A-Z0-9.+-]+"@"[a-z_A-Z0-9-]+("."[a-z_A-Z0-9\-]+)+[a-z <Verbatim,VerbatimCode>\n { /* new line in verbatim block */ copyToOutput(yyscanner,yytext,(int)yyleng); } -<Verbatim>^[ \t]*"///" { +<Verbatim>^[ \t]*"//"[/!] { if (yyextra->blockName=="dot" || yyextra->blockName=="msc" || yyextra->blockName=="uml" || yyextra->blockName.at(0)=='f') { // see bug 487871, strip /// from dot images and formulas. |