From 20ab5af6e1ad21fa80d1b5d52e9c2907081ed9d8 Mon Sep 17 00:00:00 2001 From: Bill Zorn Date: Thu, 5 May 2016 14:26:43 -0700 Subject: [PATCH] fixed html things to work with new colorless mana symbol --- lib/html_extra_data.py | 371 ++++++++++++++++++++++++++++++++++++++++- lib/utils.py | 6 +- 2 files changed, 373 insertions(+), 4 deletions(-) diff --git a/lib/html_extra_data.py b/lib/html_extra_data.py index 687d1b2..db62a9d 100644 --- a/lib/html_extra_data.py +++ b/lib/html_extra_data.py @@ -1,2 +1,371 @@ box_width = 350 -html_prepend = "\n\n\n" +html_prepend = """ + + +""" diff --git a/lib/utils.py b/lib/utils.py index aa4a2b9..256896f 100644 --- a/lib/utils.py +++ b/lib/utils.py @@ -434,9 +434,9 @@ def mana_untranslate(manastr, for_forum = False, for_html = False): if jmanastr == '': return mana_html_open_delimiter + str(colorless_total) + mana_html_close_delimiter else: - return (mana_html_open_delimiter + ('' if colorless_total == 0 - else str(colorless_total)) - + mana_html_close_delimiter + jmanastr) + return (('' if colorless_total == 0 + else mana_html_open_delimiter + str(colorless_total) + mana_html_close_delimiter) + + jmanastr) elif for_forum: if jmanastr == '':