[fine] Fix line endings in windows
This commit is contained in:
parent
3d4538c0df
commit
e5ac1b2718
1 changed files with 3 additions and 1 deletions
|
|
@ -4,7 +4,9 @@ use std::fs;
|
||||||
use std::path::{Path, PathBuf};
|
use std::path::{Path, PathBuf};
|
||||||
|
|
||||||
fn generate_test_for_file(path: PathBuf) -> String {
|
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();
|
let display_path = path.display().to_string();
|
||||||
|
|
||||||
// Start iterating over lines and processing directives....
|
// Start iterating over lines and processing directives....
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue