From 96c2b70897d9a89792ab9cfd3dfc71796e115f0f Mon Sep 17 00:00:00 2001 From: Unbewohnte Date: Sun, 12 Sep 2021 20:37:59 +0300 Subject: [PATCH] Fixed an overlapping text issue with cirno.fumo --- Cargo.lock | 2 +- fumofiles/cirno.fumo | 3 ++- src/main.rs | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 3172170..17da18d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -45,7 +45,7 @@ dependencies = [ [[package]] name = "fumosay" -version = "0.4.1" +version = "0.4.2" dependencies = [ "clap", ] diff --git a/fumofiles/cirno.fumo b/fumofiles/cirno.fumo index 27b1200..6e8a9c1 100644 --- a/fumofiles/cirno.fumo +++ b/fumofiles/cirno.fumo @@ -1,4 +1,5 @@ - __ __ + + __ __ () | \ / | () | \____/ | () |__// V \\__| diff --git a/src/main.rs b/src/main.rs index a32bd57..7d95f5d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -14,7 +14,7 @@ const DEFAULT_FUMOFILES_DIR: &str = "/usr/local/share/fumosay/fumofiles/"; /// `message` will be added on the new line at the end of the fumofile. fn process_message(fumofile_contents: &mut String, message: &str) -> String { if fumofile_contents.contains(MESSAGE_INDICATOR) { - return fumofile_contents.replace(MESSAGE_INDICATOR,message); + return fumofile_contents.replace(MESSAGE_INDICATOR, message); } return format!("{}\n{}", fumofile_contents, message); }