Optimize line breaking