// Choose the largest paragraph prefix that fits while leaving a minimum count on each side. Zero means defer the paragraph to the next page. pub fn widow_split(lines: i64, room: i64, minimum: i64) -> i64 { if lines<0 || room<0 || minimum <= 0 { return -1; } if lines <= room { return lines; } let limit = lines-minimum; let prefix = if room