@@ -1543,17 +1543,13 @@ impl<U: EventListener> Crosswords<U> {
15431543 } else {
15441544 Column ( 0 )
15451545 } ;
1546- let end_col = if line == end. row {
1547- end. col
1548- } else {
1549- last_col
1550- } ;
1546+ let end_col = if line == end. row { end. col } else { last_col } ;
15511547
15521548 // Carry buffered blank cells across wrap continuations only.
15531549 // Without this, `aaa \n aaa"` (where row N wraps into N+1) would
15541550 // collapse the cross-row gap from two spaces to one.
1555- let is_wrap_continuation = line . 0 > start . row . 0
1556- && self . grid [ line - 1i32 ] [ last_col] . wrapline ( ) ;
1551+ let is_wrap_continuation =
1552+ line . 0 > start . row . 0 && self . grid [ line - 1i32 ] [ last_col] . wrapline ( ) ;
15571553 if !is_wrap_continuation {
15581554 blank_cells = 0 ;
15591555 }
@@ -1604,7 +1600,13 @@ impl<U: EventListener> Crosswords<U> {
16041600 let line_length = std:: cmp:: min ( self . grid [ line] . line_length ( ) , cols. end + 1 ) ;
16051601 let cols_end = cols. end ;
16061602
1607- self . append_cells ( & mut text, line, cols, include_wrapped_wide, & mut blank_cells) ;
1603+ self . append_cells (
1604+ & mut text,
1605+ line,
1606+ cols,
1607+ include_wrapped_wide,
1608+ & mut blank_cells,
1609+ ) ;
16081610 // Trailing blank_cells intentionally dropped.
16091611
16101612 if cols_end >= self . grid . columns ( ) - 1
@@ -1621,6 +1623,7 @@ impl<U: EventListener> Crosswords<U> {
16211623 /// - `\0` cells inside a run of content become real spaces
16221624 /// - trailing blanks at end of the run are dropped (caller decides
16231625 /// whether to flush them via the `blank_cells` accumulator)
1626+ ///
16241627 /// Returns true if the line emitted any non-blank content.
16251628 fn append_cells (
16261629 & self ,
0 commit comments