From 305f70772377f84b0f023fed53c0bc4b5d8bfc9a Mon Sep 17 00:00:00 2001 From: cajun <12363371+CajunAvenger@users.noreply.github.com> Date: Mon, 7 Oct 2024 11:56:35 -0500 Subject: [PATCH] remove italics tags from names --- data/magic-cockatrice-v2.mse-export-template/export-template | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/data/magic-cockatrice-v2.mse-export-template/export-template b/data/magic-cockatrice-v2.mse-export-template/export-template index aef88b6b5..783a9d2aa 100644 --- a/data/magic-cockatrice-v2.mse-export-template/export-template +++ b/data/magic-cockatrice-v2.mse-export-template/export-template @@ -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:"