From 6ebfb4b2894f39ffe6c3b26ec4db04914cf21054 Mon Sep 17 00:00:00 2001 From: Liam Date: Thu, 4 Jul 2024 17:17:26 +0100 Subject: [PATCH] fix log --- .../java/cc/fascinated/bat/features/logging/LogFeature.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/cc/fascinated/bat/features/logging/LogFeature.java b/src/main/java/cc/fascinated/bat/features/logging/LogFeature.java index 8784d98..403dd54 100644 --- a/src/main/java/cc/fascinated/bat/features/logging/LogFeature.java +++ b/src/main/java/cc/fascinated/bat/features/logging/LogFeature.java @@ -61,7 +61,7 @@ public class LogFeature extends Feature { if (content.length() > 512) { return "*Content too long, [click here to view]("+PasteUtils.uploadPaste(content).getUrl()+")*"; } - if (content.length() <= 32) { + if (content.length() <= 32 && !content.contains("\n")) { return "`%s`".formatted(content); } return "\n```\n%s\n```".formatted(content);