Skip to content

Commit

Permalink
Update main.py
Browse files Browse the repository at this point in the history
Disable formatting for placeholders
  • Loading branch information
BONNe authored Feb 10, 2024
1 parent 816b8c9 commit 12193f0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def placeholders_bundle(gamemode_name:str):
"""

if ("[gamemode]" in row['placeholder'] or gamemode_name in row['placeholder']):
result += f"| %{row['placeholder'].replace('[gamemode]',gamemode_name)}% | {row['desc']} | {row['version']} |\n"
result += f"| `%{row['placeholder'].replace('[gamemode]',gamemode_name)}%` | {row['desc']} | {row['version']} |\n"

return result

Expand Down Expand Up @@ -131,7 +131,7 @@ def placeholders_source(source:str):
# Analyze the source
if (row['source'] == source):
# We are in our plugin, populate rows
result += f"| %{row['placeholder']}% | {row['desc']} | {row['version']} |\n"
result += f"| `%{row['placeholder']}%` | {row['desc']} | {row['version']} |\n"

return result

Expand Down Expand Up @@ -216,4 +216,4 @@ def icon_css(icon:str):
if icon.lower() == entry['name']:
return entry['css']

return ""
return ""

0 comments on commit 12193f0

Please sign in to comment.