Fixed lex problem ending docs with whitespace