Updated BBCode parser to handle line breaks better.