diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2014-12-19 13:05:51 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2014-12-19 13:05:51 (GMT) |
commit | fa239ea9a3bba27e4fff84629883ee400f674c1e (patch) | |
tree | ab6655636a9bdefcc4c968b6b8a8c499712150a1 /src/doxygen.cpp | |
parent | 60abada8b95cc1772996a264065904f408ed32ff (diff) | |
download | Doxygen-fa239ea9a3bba27e4fff84629883ee400f674c1e.zip Doxygen-fa239ea9a3bba27e4fff84629883ee400f674c1e.tar.gz Doxygen-fa239ea9a3bba27e4fff84629883ee400f674c1e.tar.bz2 |
Fixed issue parsing @end directly followed by the end of the file
Diffstat (limited to 'src/doxygen.cpp')
-rw-r--r-- | src/doxygen.cpp | 4 |
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); |