fix log
All checks were successful
Deploy to Dokku / docker (ubuntu-latest) (push) Successful in 43s
All checks were successful
Deploy to Dokku / docker (ubuntu-latest) (push) Successful in 43s
This commit is contained in:
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);
|
||||
|
Loading…
Reference in New Issue
Block a user