fix log
All checks were successful
Deploy to Dokku / docker (ubuntu-latest) (push) Successful in 43s

This commit is contained in:
Lee 2024-07-04 17:17:26 +01:00
parent 35223c376a
commit 6ebfb4b289

@ -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);