@@ -58,10 +58,12 @@ impl ASCIISnapshot {
58
58
}
59
59
None => frame_width,
60
60
} ;
61
- let line = format ! ( "│{}│\n " , "─" . repeat( frame_width) ) ;
62
- let frame_width_with_content = frame_width - 1 ;
63
- let top_frame = format ! ( "╭{}╮\n " , "─" . repeat( frame_width) ) ;
64
- let bottom_frame = format ! ( "╰{}╯" , "─" . repeat( frame_width) ) ;
61
+ let frame_width_with_space = frame_width + SPACE_BOTH_SIDE ;
62
+ let line = "─" . repeat ( frame_width_with_space) ;
63
+ let breadcurmbs_line = format ! ( "│{}│\n " , line) ;
64
+ let frame_width_with_content = frame_width;
65
+ let top_frame = format ! ( "╭{}╮\n " , line) ;
66
+ let bottom_frame = format ! ( "╰{}╯" , line) ;
65
67
let code = code
66
68
. lines ( )
67
69
. enumerate ( )
@@ -76,14 +78,14 @@ impl ASCIISnapshot {
76
78
) ,
77
79
None => line. to_string( ) ,
78
80
} ,
79
- frame_width_with_content - 1
81
+ frame_width_with_content
80
82
)
81
83
} )
82
84
. collect :: < String > ( ) ;
83
- let text_line = |text : & str | format ! ( "│ {:1$}│\n " , text, frame_width_with_content) ;
85
+ let text_line = |text : & str | format ! ( "│ {:1$} │\n " , text, frame_width_with_content) ;
84
86
let breadcrumbs = optional (
85
87
format ! (
86
- "{}{line }" ,
88
+ "{}{breadcurmbs_line }" ,
87
89
text_line( & self . code. file_path. clone( ) . unwrap_or( String :: from( "" ) ) )
88
90
) ,
89
91
self . has_breadcrumbs ,
0 commit comments