mirror of
https://github.com/jlu5/SupyPlugins.git
synced 2025-04-27 13:31:10 -05:00
MCInfo: strip nbsp from crafting item names
This commit is contained in:
parent
bcf43ba48d
commit
f01f9789fc
@ -53,7 +53,10 @@ from bs4 import BeautifulSoup
|
|||||||
mcwiki_url = 'http://minecraft.gamepedia.com'
|
mcwiki_url = 'http://minecraft.gamepedia.com'
|
||||||
|
|
||||||
def format_text(text):
|
def format_text(text):
|
||||||
return utils.str.normalizeWhitespace(text).strip()
|
text = text.replace('\xa0', '')
|
||||||
|
text = utils.str.normalizeWhitespace(text)
|
||||||
|
text = text.strip()
|
||||||
|
return text
|
||||||
|
|
||||||
class MCInfo(callbacks.Plugin):
|
class MCInfo(callbacks.Plugin):
|
||||||
"""Fetches crafting recipes and other interesting information from the Minecraft Wiki."""
|
"""Fetches crafting recipes and other interesting information from the Minecraft Wiki."""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user