Optimized page breaks in text view