Fixed issue with preserveLineBreaks and line breaks at start and end of tag