From 509b04e815f19d42cd047d03c5fa666e2d1544a9 Mon Sep 17 00:00:00 2001 From: Chris Morgan Date: Thu, 6 Jan 2022 16:47:35 +1100 Subject: [PATCH] Normalise whitespace in README.md MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Accidental ␉ and four-spaces mixing. --- README.md | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) 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"); } ``` -- 2.42.0