remove italics tag from names

This commit is contained in:
cajun
2024-10-07 11:55:33 -05:00
parent 02b83d7a32
commit 67ee280c32

View File

@@ -99,7 +99,8 @@ script:
replace@(match:":", replace:"")+ #remove colons
replace@(match:";", replace:"")+ #remove semicolons
replace@(match:"\n", replace:"")+ #remove linebreaks
replace@(match:"\\.", replace:"") #remove periods
replace@(match:"\\.", replace:"")+ #remove periods
remove_tags
# escape special xml characters
xml_escape := replace@(match:"&",replace:"&") #escape ampersands
@@ -115,7 +116,7 @@ script:
exporter_name_grabber := replace@(match:"!exporte?r?name ", replace:"")
#determining what name should be used for the card
card_name := { if exporter_name_grabber(exporter_name_filter(card.notes)) != "" then exporter_name_grabber(exporter_name_filter(card.notes)) else card.name }
card_name := { if exporter_name_grabber(exporter_name_filter(card.notes)) != "" then exporter_name_grabber(exporter_name_filter(card.notes)) else remove_tags(card.name) }
#surround mana symbols in curly brackets
format_mana := replace@(match:"(CHAOS|[1-9][0-9]+(?:\\/.)?|.\\/.\\/.|.\\/.|[+-]?[^.,: ])", replace:{"\{"+_1+"}"}, in_context:"<sym(-auto)?><match></sym")