From fa239ea9a3bba27e4fff84629883ee400f674c1e Mon Sep 17 00:00:00 2001 From: Dimitri van Heesch Date: Fri, 19 Dec 2014 14:05:51 +0100 Subject: Fixed issue parsing @end directly followed by the end of the file --- src/doxygen.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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); -- cgit v0.12