Skip to content

Commit d163ba2

Browse files
committed
fix(render): No implicit padding between secondary groups
Workaround for #309
1 parent 867261d commit d163ba2

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/renderer/render.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,8 @@ pub(crate) fn render(renderer: &Renderer, groups: Report<'_>) -> String {
8989
max_line_num_len + 1,
9090
);
9191
}
92-
if peek.is_none() && g == 0 && group_len > 1 {
92+
if peek.is_none() && title_style == TitleStyle::MainHeader && (g + 1) < groups.len()
93+
{
9394
draw_col_separator_end(
9495
renderer,
9596
&mut buffer,

tests/formatter.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,6 @@ fn test_multi_secondary_group_no_snippet() {
350350
];
351351
let expected_ascii = str![[r#"
352352
error: the core problem
353-
|
354353
note: more information
355354
help: a way to fix this
356355
"#]];
@@ -359,7 +358,6 @@ help: a way to fix this
359358

360359
let expected_unicode = str![[r#"
361360
error: the core problem
362-
╰╴
363361
note: more information
364362
help: a way to fix this
365363
"#]];

0 commit comments

Comments
 (0)