Somewhat hackish fix for xing github defect 142 regarding spurious linebreaks added to text end, to satisfy SITE-944

Somewhat hackish fix for xing github defect 142 regarding spurious linebreaks added to text end, to satisfy SITE-944.