From e5ac1b27184846a19d4a21f0ad1e8b159017707f Mon Sep 17 00:00:00 2001 From: John Doty Date: Sat, 6 Jan 2024 16:43:18 -0800 Subject: [PATCH] [fine] Fix line endings in windows --- fine/build.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fine/build.rs b/fine/build.rs index 78b94784..2491adf6 100644 --- a/fine/build.rs +++ b/fine/build.rs @@ -4,7 +4,9 @@ use std::fs; use std::path::{Path, PathBuf}; fn generate_test_for_file(path: PathBuf) -> String { - let contents = fs::read_to_string(&path).expect("Unable to read input"); + let contents = fs::read_to_string(&path) + .expect("Unable to read input") + .replace("\r\n", "\n"); let display_path = path.display().to_string(); // Start iterating over lines and processing directives....