Improved cross-platform line-break compatibility