aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPvdBerg <[email protected]>2018-06-08 22:06:16 +0200
committerPvdBerg <[email protected]>2018-06-08 22:36:44 +0200
commit24c4c97b06cc6826d76b00e73a20511f5395dd41 (patch)
treeacfded08c850559185b3e748bd8cac063b92e3ec /src
parentMerge branch 'futures' into v0.6.x (diff)
downloadserenity-24c4c97b06cc6826d76b00e73a20511f5395dd41.tar.xz
serenity-24c4c97b06cc6826d76b00e73a20511f5395dd41.zip
Fix push_codeblock_safe not adding a newline
Diffstat (limited to 'src')
-rw-r--r--src/utils/message_builder.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/utils/message_builder.rs b/src/utils/message_builder.rs
index 9e90c53..35f2889 100644
--- a/src/utils/message_builder.rs
+++ b/src/utils/message_builder.rs
@@ -491,6 +491,7 @@ impl MessageBuilder {
self.0.push_str(language);
}
+ self.0.push('\n');
{
let mut c = content.into();
c.inner = normalize(&c.inner).replace("```", " ");