summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2014-12-19 13:05:51 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2014-12-19 13:05:51 (GMT)
commitfa239ea9a3bba27e4fff84629883ee400f674c1e (patch)
treeab6655636a9bdefcc4c968b6b8a8c499712150a1
parent60abada8b95cc1772996a264065904f408ed32ff (diff)
downloadDoxygen-fa239ea9a3bba27e4fff84629883ee400f674c1e.zip
Doxygen-fa239ea9a3bba27e4fff84629883ee400f674c1e.tar.gz
Doxygen-fa239ea9a3bba27e4fff84629883ee400f674c1e.tar.bz2
Fixed issue parsing @end directly followed by the end of the file
-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);