summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2013-07-17 19:20:06 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2013-07-17 19:20:06 (GMT)
commitc92f2ce3f659734cd38d43d0ff3981a21d309263 (patch)
tree425b4552b316f3a3db8ba8b9e0cc433f15d305a6
parent54e87756c7b1d03f7fcffb48207fcbde144a9be9 (diff)
downloadDoxygen-c92f2ce3f659734cd38d43d0ff3981a21d309263.zip
Doxygen-c92f2ce3f659734cd38d43d0ff3981a21d309263.tar.gz
Doxygen-c92f2ce3f659734cd38d43d0ff3981a21d309263.tar.bz2
Avoid space in the output after \n command following by a newline.
-rw-r--r--src/doctokenizer.l7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/doctokenizer.l b/src/doctokenizer.l
index 9a2e4bf..3c924cf 100644
--- a/src/doctokenizer.l
+++ b/src/doctokenizer.l
@@ -550,6 +550,13 @@ REFWORD {LABELID}|{REFWORD2}|{REFWORD3}
ASSERT(ok);
return TK_COMMAND;
}
+<St_Para>{CMD}"n"\n { /* \n followed by real newline */
+ yylineno++;
+ g_token->name = yytext+1;
+ g_token->name = g_token->name.stripWhiteSpace();
+ g_token->paramDir=TokenInfo::Unspecified;
+ return TK_COMMAND;
+ }
<St_Para>{SPCMD1} |
<St_Para>{SPCMD2} |
<St_Para>{SPCMD4} { /* special command */