@@ -348,9 +348,7 @@ impl Renderer {
348
348
if g == 0 {
349
349
let current_line = buffer. num_lines ( ) ;
350
350
match peek {
351
- Some ( Element :: Title ( level) )
352
- if level. level . name != Some ( None ) =>
353
- {
351
+ Some ( Element :: Message ( _) | Element :: Title ( _) ) => {
354
352
self . draw_col_separator_no_space (
355
353
& mut buffer,
356
354
current_line,
@@ -363,17 +361,6 @@ impl Renderer {
363
361
current_line,
364
362
max_line_num_len + 1 ,
365
363
) ,
366
-
367
- Some ( Element :: Message ( level) )
368
- if level. level . name != Some ( None ) =>
369
- {
370
- self . draw_col_separator_no_space (
371
- & mut buffer,
372
- current_line,
373
- max_line_num_len + 1 ,
374
- ) ;
375
- }
376
-
377
364
None if group_len > 1 => self . draw_col_separator_end (
378
365
& mut buffer,
379
366
current_line,
@@ -429,9 +416,7 @@ impl Renderer {
429
416
}
430
417
if g == 0
431
418
&& ( matches ! ( section, Element :: Origin ( _) )
432
- || ( matches ! ( section, Element :: Title ( _) ) && i == 0 )
433
- || matches ! ( section, Element :: Title ( level) if level. level. name == Some ( None ) )
434
- || matches ! ( section, Element :: Message ( level) if level. level. name == Some ( None ) ) )
419
+ || ( matches ! ( section, Element :: Title ( _) ) && i == 0 ) )
435
420
{
436
421
let current_line = buffer. num_lines ( ) ;
437
422
if peek. is_none ( ) && group_len > 1 {
@@ -440,15 +425,7 @@ impl Renderer {
440
425
current_line,
441
426
max_line_num_len + 1 ,
442
427
) ;
443
- } else if matches ! ( peek, Some ( Element :: Title ( level) ) if level. level. name != Some ( None ) )
444
- {
445
- self . draw_col_separator_no_space (
446
- & mut buffer,
447
- current_line,
448
- max_line_num_len + 1 ,
449
- ) ;
450
- } else if matches ! ( peek, Some ( Element :: Message ( level) ) if level. level. name != Some ( None ) )
451
- {
428
+ } else if matches ! ( peek, Some ( Element :: Message ( _) | Element :: Title ( _) ) ) {
452
429
self . draw_col_separator_no_space (
453
430
& mut buffer,
454
431
current_line,
0 commit comments