File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ impl DisplayListFormatting for Formatter {
18
18
19
19
fn format_inline_marks ( inline_marks : & [ DisplayMark ] , inline_marks_width : usize ) -> String {
20
20
format ! (
21
- " {:>width$}" ,
21
+ "{:>width$}" ,
22
22
inline_marks
23
23
. iter( )
24
24
. map( |mark| {
@@ -215,7 +215,7 @@ impl fmt::Display for DisplayList {
215
215
DisplayLine :: Source { inline_marks, .. } => {
216
216
let width = inline_marks. len ( ) ;
217
217
if width > max {
218
- width
218
+ width + 1
219
219
} else {
220
220
max
221
221
}
Original file line number Diff line number Diff line change @@ -23,7 +23,8 @@ impl DisplayListFormatting for Formatter {
23
23
24
24
fn format_inline_marks ( inline_marks : & [ DisplayMark ] , inline_marks_width : usize ) -> String {
25
25
format ! (
26
- " {:>width$}" ,
26
+ "{}{}" ,
27
+ " " . repeat( inline_marks_width - inline_marks. len( ) ) ,
27
28
inline_marks
28
29
. iter( )
29
30
. map( |mark| {
@@ -42,7 +43,6 @@ impl DisplayListFormatting for Formatter {
42
43
} )
43
44
. collect:: <Vec <String >>( )
44
45
. join( "" ) ,
45
- width = inline_marks_width
46
46
)
47
47
}
48
48
@@ -273,7 +273,7 @@ impl fmt::Display for DisplayList {
273
273
DisplayLine :: Source { inline_marks, .. } => {
274
274
let width = inline_marks. len ( ) ;
275
275
if width > max {
276
- width
276
+ width + 1
277
277
} else {
278
278
max
279
279
}
You can’t perform that action at this time.
0 commit comments