Skip to content

Commit 2af175c

Browse files
committed
fix: Add '=' before all secondary titles
1 parent a2595e2 commit 2af175c

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

src/renderer/mod.rs

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -555,13 +555,14 @@ impl Renderer {
555555
buffer.prepend(buffer_msg_line_offset, " ", ElementStyle::NoStyle);
556556
}
557557

558+
self.draw_note_separator(
559+
buffer,
560+
buffer_msg_line_offset,
561+
max_line_num_len + 1,
562+
is_cont,
563+
);
564+
558565
if title.level.name != Some(None) {
559-
self.draw_note_separator(
560-
buffer,
561-
buffer_msg_line_offset,
562-
max_line_num_len + 1,
563-
is_cont,
564-
);
565566
buffer.append(
566567
buffer_msg_line_offset,
567568
title.level.as_str(),

tests/formatter.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2534,7 +2534,7 @@ LL | let s: &str = include_bytes!("file.txt"); //~ ERROR mismatched types
25342534
| ---- ^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `&str`, found `&[u8; 0]`
25352535
| |
25362536
| expected due to this
2537-
expected reference `&str`
2537+
= expected reference `&str`
25382538
found reference `&'static [u8; 0]`
25392539
"#]];
25402540
let renderer = Renderer::plain().anonymized_line_numbers(true);

0 commit comments

Comments
 (0)