fixed layout issues with line breaks and spaces.