Fix HTML FormattedString output for newline characters