summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/doxygen.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/doxygen.cpp b/src/doxygen.cpp
index b9437f6..0756217 100644
--- a/src/doxygen.cpp
+++ b/src/doxygen.cpp
@@ -9329,6 +9329,10 @@ static void parseFile(ParserInterface *parser,
msg("Reading %s...\n",fn);
readInputFile(fileName,preBuf);
}
+ if (preBuf.data() && preBuf.curPos()>0 && *(preBuf.data()+preBuf.curPos()-1)!='\n')
+ {
+ preBuf.addChar('\n'); // add extra newline to help parser
+ }
BufStr convBuf(preBuf.curPos()+1024);