Skip to content

Commit

Permalink
Fixed issue parsing @EnD directly followed by the end of the file
Browse files Browse the repository at this point in the history
  • Loading branch information
Dimitri van Heesch committed Dec 19, 2014
1 parent 60abada commit fa239ea
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/doxygen.cpp
Expand Up @@ -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);

Expand Down

0 comments on commit fa239ea

Please sign in to comment.