mirror of
https://github.com/Cockatrice/Magic-Spoiler.git
synced 2026-08-24 18:35:09 -05:00
Merge pull request #12 from tritoch/master
Remove html tag from card text
This commit is contained in:
@@ -79,7 +79,8 @@ def parse_mtgs(mtgs, manual_cards=[], card_corrections=[], delete_cards=[], spli
|
||||
.replace('</i>', '') \
|
||||
.replace('"', '"') \
|
||||
.replace('blkocking', 'blocking')\
|
||||
.replace('&bull;','*')\
|
||||
.replace('&bull;',u'•')\
|
||||
.replace('•',u'•')\
|
||||
.replace('comes into the','enters the')\
|
||||
.replace('threeor', 'three or')\
|
||||
.replace('[i]','')\
|
||||
@@ -342,7 +343,7 @@ def errorcheck(mtgjson):
|
||||
errors.append({"name": card['name'], "key": key, "missing": True})
|
||||
if 'text' in card:
|
||||
#foo = 1
|
||||
card['text'] = card['text'].replace('<i>','').replace('</i>','').replace('<em>','').replace('</em','').replace('(','')
|
||||
card['text'] = card['text'].replace('<i>','').replace('</i>','').replace('<em>','').replace('</em','').replace('(','').replace('•',u'•')
|
||||
if 'type' in card:
|
||||
if 'Planeswalker' in card['type']:
|
||||
if not 'loyalty' in card:
|
||||
|
||||
Reference in New Issue
Block a user