Skip to content

Commit

Permalink
render morse conversion output in fixed width, and escape bullets at …
Browse files Browse the repository at this point in the history
…the start of morse deconversion
  • Loading branch information
posimagi committed Jul 28, 2024
1 parent 4b55ab4 commit 0fae3eb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions exts/morse.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand All @@ -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)

Expand Down

0 comments on commit 0fae3eb

Please sign in to comment.