Skip to content

Commit ac6eebe

Browse files
committed
fix: windows lineendings breaking toml
1 parent 643c5b3 commit ac6eebe

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/simple.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,8 @@ async fn get_ext(
202202
);
203203

204204
for line in LinesWithEndings::from(&file) {
205+
// Necessary for the used toml syntax
206+
let line = &line.replace('\r', "");
205207
if html_generator
206208
.parse_html_for_line_which_includes_newline(line)
207209
.is_err()

0 commit comments

Comments
 (0)