Skip to content

Commit 1cb3311

Browse files
committed
Fix line endings
Before this change, samples in the Rust book looked like this: fn main() { println!("hello world!"); } Afterward, it looks like this, which is correct, fn main() { println!("hello world"); } Basically, when you use parse_line, syntect implicitly inserts the line breaks.
1 parent 86c794f commit 1cb3311

File tree

2 files changed

+20
-24
lines changed

2 files changed

+20
-24
lines changed

src/utils/highlight.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,6 @@ fn boringify(line: &str) -> (String, bool) {
125125
}
126126
}
127127
result += line;
128-
result += "\n";
129128

130129
(result, false)
131130
}

0 commit comments

Comments
 (0)