From d80c86a8f4cff4c02dd578992b9316262434ff78 Mon Sep 17 00:00:00 2001 From: Michael Welsh Duggan Date: Tue, 13 Nov 2018 15:08:13 -0500 Subject: [PATCH] A couple of minor fixes (#221) * Fix unmatched . * Mark string with unicode char as unicode. (Without this change, the \u00d7 remains as "\u00d7" in Python 2.7.) --- domdiv/draw.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/domdiv/draw.py b/domdiv/draw.py index 993da55..9979d61 100644 --- a/domdiv/draw.py +++ b/domdiv/draw.py @@ -116,7 +116,9 @@ class DividerDrawer(object): blank_line = (space + '\n') * 2 if self.options.info or self.options.info_all: - text = "Sumpfork's Dominion Tabbed Divider Generator\n" + text = "" + text += "Sumpfork's Dominion Tabbed Divider Generator" + text += "\n" text += blank_line text += "Online generator at: " text += "http://domtabs.sandflea.org\n\n" @@ -520,7 +522,7 @@ class DividerDrawer(object): # now draw the number of sets if count > 1: - count_string = "{}\u00d7".format(count) + count_string = u"{}\u00d7".format(count) width_string = stringWidth(count_string, self.font_mapping['Regular'], 10) width_string -= 1 # adjust to make it closer to image width += width_string