Update TextHelper::autoParagraph() remove closing new line.

The additional trim() removes the last newline for better output control (e.g. the one past the last /p close tag).

RFC: Remove any /n from this methods (as it is better to not have white spaces in generated code that may or may not require special css treatment in some circumstances)