Skip to content

Commit 0fae3eb

Browse files
committed
render morse conversion output in fixed width, and escape bullets at the start of morse deconversion
1 parent 4b55ab4 commit 0fae3eb

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
66

77
## [Unreleased]
88

9+
### Fixed
10+
- Issue where ?morse/?demorse outputs beginning with `-` rendered as a bulleted list (#484).
911

1012
## [2.9.2] - 2023-12-15
1113
### Added

exts/morse.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ async def _morse(self, ctx: commands.Context, *, msg: str):
3434
result += " "
3535
embed = cmn.embed_factory(ctx)
3636
embed.title = f"Morse Code for {msg}"
37-
embed.description = "**" + result + "**"
37+
embed.description = "**`" + result + "`**"
3838
embed.colour = cmn.colours.good
3939
await ctx.send(embed=embed)
4040

@@ -54,7 +54,7 @@ async def _unmorse(self, ctx: commands.Context, *, msg: str):
5454
result += " "
5555
embed = cmn.embed_factory(ctx)
5656
embed.title = f"ASCII for {msg0}"
57-
embed.description = result
57+
embed.description = "`" + result + "`"
5858
embed.colour = cmn.colours.good
5959
await ctx.send(embed=embed)
6060

0 commit comments

Comments
 (0)