Fix bug 9300. We need manually to convert newlines to paragraph breaks.

(cherry picked from commit 8f40d784c077e95f402c77b07f61c6f740ad67f1)