diff --git a/adapters/discord/package.json b/adapters/discord/package.json index c5f9c9cd..a39944d2 100644 --- a/adapters/discord/package.json +++ b/adapters/discord/package.json @@ -1,7 +1,7 @@ { "name": "@satorijs/adapter-discord", "description": "Discord Adapter for Satorijs", - "version": "4.1.3", + "version": "4.1.4", "main": "lib/index.js", "typings": "lib/index.d.ts", "files": [ diff --git a/adapters/discord/src/message.ts b/adapters/discord/src/message.ts index fb4e04c8..d815badb 100644 --- a/adapters/discord/src/message.ts +++ b/adapters/discord/src/message.ts @@ -251,7 +251,6 @@ export class DiscordMessageEncoder extends MessageE if (!this.buffer.endsWith('\n')) this.buffer += '\n' await this.render(children) if (!this.buffer.endsWith('\n')) this.buffer += '\n' - this.buffer += '\n' } else if (type === 'blockquote') { if (!this.buffer.endsWith('\n')) this.buffer += '\n' this.buffer += '> ' diff --git a/adapters/zulip/package.json b/adapters/zulip/package.json index 5829a670..1c4f142b 100644 --- a/adapters/zulip/package.json +++ b/adapters/zulip/package.json @@ -1,7 +1,7 @@ { "name": "@satorijs/adapter-zulip", "description": "Zulip Adapter for Satorijs", - "version": "1.0.1", + "version": "1.0.2", "main": "lib/index.js", "typings": "lib/index.d.ts", "files": [ diff --git a/adapters/zulip/src/message.ts b/adapters/zulip/src/message.ts index 595e0040..04119733 100644 --- a/adapters/zulip/src/message.ts +++ b/adapters/zulip/src/message.ts @@ -66,9 +66,9 @@ export class ZulipMessageEncoder extends MessageEnc if (type === 'text') { this.buffer += escape(attrs.content) } else if (type === 'p') { - this.buffer += '\n' + if (!this.buffer.endsWith('\n')) this.buffer += '\n' await this.render(children) - this.buffer += '\n' + if (!this.buffer.endsWith('\n')) this.buffer += '\n' } else if (type === 'b' || type === 'strong') { this.buffer += ` **` await this.render(children)