Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

escape Markdown bullets in morse conversion/deconversion output #485

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading