Skip to content

Commit 42c12f3

Browse files
committed
fix: Don't output some source chars twice
1 parent 962407d commit 42c12f3

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/renderer/mod.rs

-1
Original file line numberDiff line numberDiff line change
@@ -2048,7 +2048,6 @@ impl Renderer {
20482048
})
20492049
.collect();
20502050

2051-
buffer.puts(line_offset, code_offset, &code, ElementStyle::Quotation);
20522051
let placeholder = self.margin();
20532052
let padding = str_width(placeholder);
20542053
let (width_taken, bytes_taken) = if margin.was_cut_left() {

tests/formatter.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2371,7 +2371,7 @@ fn main() {
23712371
error[E0369]: cannot add `&str` to `&str`
23722372
--> $DIR/non-1-width-unicode-multiline-label.rs:7:260
23732373
|
2374-
LL | ...࿉࿊࿋࿌࿍࿎࿏࿐࿑࿒࿓࿔࿕࿖࿗࿘࿙࿚"; let _a = unicode_is_fun + " really fun!";;
2374+
LL | ...࿉࿊࿋࿌࿍࿎࿏࿐࿑࿒࿓࿔࿕࿖࿗࿘࿙࿚"; let _a = unicode_is_fun + " really fun!";
23752375
| -------------- ^ -------------- &str
23762376
| | |
23772377
| | `+` cannot be used to concatenate two `&str` strings

0 commit comments

Comments
 (0)