Skip to content

Commit 6a7191a

Browse files
committed
win panic fix
1 parent 322e80a commit 6a7191a

File tree

1 file changed

+1
-1
lines changed
  • crates/compilers/src/preprocessor

1 file changed

+1
-1
lines changed

crates/compilers/src/preprocessor/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ fn interface_representation(content: &str, file: &Path) -> Result<String, Emitte
210210

211211
let content =
212212
replace_source_content(content, spans_to_remove.iter().map(|span| (span.to_range(), "")))
213-
.replace("\n", "");
213+
.replace("\r\n", "\n").replace("\n", "");
214214
Ok(utils::RE_TWO_OR_MORE_SPACES.replace_all(&content, "").to_string())
215215
}
216216

0 commit comments

Comments
 (0)