Skip to content

Commit

Permalink
better quotes (#112)
Browse files Browse the repository at this point in the history
  • Loading branch information
carderne authored Mar 18, 2024
1 parent 649f9f5 commit 0adcc5b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sigexport/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,8 +222,8 @@ def create_markdown(
quote = ""
if add_quote:
try:
quote = msg["quote"]["text"]
quote = quote.replace("\n", "\n>")
quote = msg["quote"]["text"].rstrip("\n")
quote = quote.replace("\n", "\n> ")
quote = f"\n\n> {quote}\n\n"
except (KeyError, TypeError):
pass
Expand Down

0 comments on commit 0adcc5b

Please sign in to comment.