diff options
Diffstat (limited to 'src/commentscan.l')
-rw-r--r-- | src/commentscan.l | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/src/commentscan.l b/src/commentscan.l index b851d81..9b2994a 100644 --- a/src/commentscan.l +++ b/src/commentscan.l @@ -1188,11 +1188,23 @@ RCSTAG "$"{ID}":"[^\n$]+"$" { // see bug 613024, we need to put the newlines after ending the XRef section. setOutput(OutputDoc); - addOutput("\n\n"); + int i; + for (i=0;i<yyleng;) + { + if (yytext[i]=='\n') addOutput('\n'),i++; + else if (strcmp(yytext+i,"\\_linebr")==0) addOutput('\n'),i+=8; + else i++; + } } else if (inContext!=OutputBrief) { - addOutput("\n\n"); + int i; + for (i=0;i<yyleng;) + { + if (yytext[i]=='\n') addOutput('\n'),i++; + else if (strcmp(yytext+i,"\\_linebr")==0) addOutput('\n'),i+=8; + else i++; + } setOutput(OutputDoc); } else // inContext==OutputBrief |