File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -636,7 +636,7 @@ impl Renderer {
636
636
} else {
637
637
( normalize_whitespace ( title. text ( ) ) , title_element_style)
638
638
} ;
639
- for ( i, text) in title_str. lines ( ) . enumerate ( ) {
639
+ for ( i, text) in title_str. split ( '\n' ) . enumerate ( ) {
640
640
if i != 0 {
641
641
buffer. append ( buffer_msg_line_offset + i, & padding, ElementStyle :: NoStyle ) ;
642
642
if title_style == TitleStyle :: Secondary
Original file line number Diff line number Diff line change @@ -3440,6 +3440,7 @@ LL | let _: S::<bool>::Pr = ();
3440
3440
| ^^ associated item not found in `S<bool>`
3441
3441
|
3442
3442
= note: the associated type was found for
3443
+
3443
3444
"# ] ] ;
3444
3445
let renderer = Renderer :: plain ( ) . anonymized_line_numbers ( true ) ;
3445
3446
assert_data_eq ! ( renderer. render( input) , expected) ;
You can’t perform that action at this time.
0 commit comments