tex_fmt/
lib.rs

1//! Main library
2
3#![doc(
4    html_logo_url = "https://raw.githubusercontent.com/WGUNDERWOOD/tex-fmt/main/extra/logo.svg"
5)]
6#![warn(clippy::pedantic)]
7
8pub mod args;
9pub mod cli;
10pub mod comments;
11pub mod config;
12pub mod format;
13pub mod ignore;
14pub mod indent;
15pub mod logging;
16pub mod read;
17pub mod regexes;
18pub mod search;
19pub mod subs;
20pub mod verbatim;
21pub mod wasm;
22pub mod wrap;
23pub mod write;
24
25#[cfg(test)]
26pub mod tests;
27
28#[cfg(any(target_family = "unix", target_family = "wasm"))]
29/// Line ending for unix
30const LINE_END: &str = "\n";
31
32#[cfg(target_family = "windows")]
33/// Line ending for Windows
34const LINE_END: &str = "\r\n";