diff options
author | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2007-08-15 18:35:31 (GMT) |
---|---|---|
committer | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2007-08-15 18:35:31 (GMT) |
commit | 115c6c02c3b246c525721aef9b1a43aeeb4666d5 (patch) | |
tree | 4d3b01807f8eb1364767b33ddb31bfd49b37ef3a /src/commentscan.l | |
parent | a56b6170231a051a6ba7e2cb3f93b21c7d854761 (diff) | |
download | Doxygen-115c6c02c3b246c525721aef9b1a43aeeb4666d5.zip Doxygen-115c6c02c3b246c525721aef9b1a43aeeb4666d5.tar.gz Doxygen-115c6c02c3b246c525721aef9b1a43aeeb4666d5.tar.bz2 |
Release-1.5.3-20070815
Diffstat (limited to 'src/commentscan.l')
-rw-r--r-- | src/commentscan.l | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/commentscan.l b/src/commentscan.l index 1b55244..a91dc97 100644 --- a/src/commentscan.l +++ b/src/commentscan.l @@ -354,6 +354,7 @@ static OutputContext inContext; // are we inside the brief, details static bool briefEndsAtDot; // does the brief description stop at a dot? static QCString formulaText; // Running text of a formula static QCString formulaEnv; // environment name +static int formulaNewLines; // amount of new lines in the formula static QCString *pOutputString; // pointer to string to which the output is appended. static QCString outputXRef; // temp argument of todo/test/../xrefitem commands static QCString blockName; // preformatted block name (e.g. verbatim, latexonly,...) @@ -566,6 +567,8 @@ static QCString addFormula() { formLabel.sprintf("\\form#%d",f->getId()); } + int i; + for (i=0;i<formulaNewLines;i++) formLabel+='\n'; return formLabel; } @@ -955,14 +958,17 @@ MAILADR [a-z_A-Z0-9.+\-]+"@"[a-z_A-Z0-9\-]+("."[a-z_A-Z0-9\-]+)+[a-z_A-Z0-9\-] formulaText="\\begin"; formulaEnv=&yytext[2]; formulaText+=formulaEnv; + formulaNewLines=0; BEGIN(ReadFormulaLong); } <Comment>{CMD}"f$" { // start of a inline formula formulaText="$"; + formulaNewLines=0; BEGIN(ReadFormulaShort); } <Comment>{CMD}"f[" { // start of a block formula formulaText="\\["; + formulaNewLines=0; BEGIN(ReadFormulaLong); } <Comment>{CMD}"{" { // begin of a group @@ -1056,6 +1062,7 @@ MAILADR [a-z_A-Z0-9.+\-]+"@"[a-z_A-Z0-9\-]+("."[a-z_A-Z0-9\-]+)+[a-z_A-Z0-9\-] formulaText+=yytext; } <ReadFormulaLong,ReadFormulaShort>\n { // new line + formulaNewLines++; formulaText+=*yytext; yyLineNr++; } |