Issue #8480 by tuj: Changed text fields to pre to preserve newlines