From 0fae3ebbd6fe4e9dee6755919f8a768d12e2a75c Mon Sep 17 00:00:00 2001 From: Posimagi Date: Sun, 28 Jul 2024 13:21:45 -0700 Subject: [PATCH] render morse conversion output in fixed width, and escape bullets at the start of morse deconversion --- CHANGELOG.md | 2 ++ exts/morse.py | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6a8f3f7..d0d639f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). ## [Unreleased] +### Fixed +- Issue where ?morse/?demorse outputs beginning with `-` rendered as a bulleted list (#484). ## [2.9.2] - 2023-12-15 ### Added diff --git a/exts/morse.py b/exts/morse.py index 641912b..6a11b67 100644 --- a/exts/morse.py +++ b/exts/morse.py @@ -34,7 +34,7 @@ async def _morse(self, ctx: commands.Context, *, msg: str): result += " " embed = cmn.embed_factory(ctx) embed.title = f"Morse Code for {msg}" - embed.description = "**" + result + "**" + embed.description = "**`" + result + "`**" embed.colour = cmn.colours.good await ctx.send(embed=embed) @@ -54,7 +54,7 @@ async def _unmorse(self, ctx: commands.Context, *, msg: str): result += " " embed = cmn.embed_factory(ctx) embed.title = f"ASCII for {msg0}" - embed.description = result + embed.description = "`" + result + "`" embed.colour = cmn.colours.good await ctx.send(embed=embed)