Skip to content

Commit

Permalink
Merge pull request #7 from AbhijeetKrishnan/master
Browse files Browse the repository at this point in the history
Fix nested Plainlist issue + link directly to move entry
  • Loading branch information
TLNBS2405 authored Feb 13, 2024
2 parents c1c85e7 + a99746e commit c93b96c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/module/embed.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def move_embed(character: character, move: dict):
embed = discord.Embed(title='**' + move['input'] + '**',
colour=SUCCESS_COLOR,
description=move['name'],
url=character.wavu_page,
url=f'{character.wavu_page}_movelist#{move["id"]}',
)

embed.set_thumbnail(url=character.portrait[0])
Expand Down
1 change: 1 addition & 0 deletions src/wavu/wavu_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ def _remove_html_tags(data):
result = result.replace("* \n", "* ")
result = re.sub(r"(\n)+", "\n", result)
result = result.replace("'''", "")
result = result.replace('**', ' *') # hack/fix for nested Plainlists
return result


Expand Down

0 comments on commit c93b96c

Please sign in to comment.