Skip to content

Commit 58e8079

Browse files
posimagiclassabbyamp
authored andcommitted
render morse conversion output in fixed width, and escape bullets at the start of morse deconversion
Fixes: #484
1 parent 6b4f985 commit 58e8079

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
1515
- Fix indentation in some text responses.
1616
### Removed
1717
- Deprecated `ae7q` extension from the default configuration (#486).
18-
18+
### Fixed
19+
- Issue where ?morse/?demorse outputs beginning with `-` rendered as a bulleted list (#484).
1920

2021
## [2.9.2] - 2023-12-15
2122
### 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)