tex-fmt 0.2.2

LaTeX formatter written in Rust
1
2
3
4
5
6
7
use crate::fs;
use std::path;

pub fn write_file(filename: &str, new_file: &str) {
    let filepath = path::Path::new(&filename).canonicalize().unwrap();
    fs::write(filepath, new_file).expect("Could not write the new file");
}