From: Chris Morgan Date: Thu, 6 Jan 2022 05:47:35 +0000 (+1100) Subject: Normalise whitespace in README.md X-Git-Url: https://git.chrismorgan.info/sanitise-file-name/commitdiff_plain/509b04e815f19d42cd047d03c5fa666e2d1544a9 Normalise whitespace in README.md Accidental ␉ and four-spaces mixing. --- diff --git a/README.md b/README.md index 946dbde..3f32868 100644 --- a/README.md +++ b/README.md @@ -24,18 +24,18 @@ Demonstration of the simplest and most convenient form of usage: use sanitise_file_name::sanitise; fn main() { - // Examples of some of the things it can do: - // whitespace is collapsed to one space, - // various ASCII puntuation gets replaced by underscores, - // outer whitespace is trimmed. - // (There are reasons for each of these things, - // and they can all be turned off or customised with options.) + // Examples of some of the things it can do: + // whitespace is collapsed to one space, + // various ASCII puntuation gets replaced by underscores, + // outer whitespace is trimmed. + // (There are reasons for each of these things, + // and they can all be turned off or customised with options.) assert_eq!( - sanitise(" https://example.com/Some\tfile \u{a0} name .exe "), - "https___example.com_Some file name.exe", - ); + sanitise(" https://example.com/Some\tfile \u{a0} name .exe "), + "https___example.com_Some file name.exe", + ); - // The windows_safe option leads to the addition of the underscore. + // The windows_safe option leads to the addition of the underscore. assert_eq!(sanitise("aux.h"), "aux_.h"); } ```