A couple of minor fixes (#221)
* Fix unmatched <para>. * Mark string with unicode char as unicode. (Without this change, the \u00d7 remains as "\u00d7" in Python 2.7.)
This commit is contained in:
parent
510309ff82
commit
d80c86a8f4
@ -116,7 +116,9 @@ class DividerDrawer(object):
|
|||||||
blank_line = (space + '\n') * 2
|
blank_line = (space + '\n') * 2
|
||||||
|
|
||||||
if self.options.info or self.options.info_all:
|
if self.options.info or self.options.info_all:
|
||||||
text = "<para alignment='center'><font size=18><b>Sumpfork's Dominion Tabbed Divider Generator</b></font>\n"
|
text = "<para alignment='center'><font size=18><b>"
|
||||||
|
text += "Sumpfork's Dominion Tabbed Divider Generator"
|
||||||
|
text += "</b></font></para>\n"
|
||||||
text += blank_line
|
text += blank_line
|
||||||
text += "Online generator at: "
|
text += "Online generator at: "
|
||||||
text += "<a href='http://domtabs.sandflea.org/' color='blue'>http://domtabs.sandflea.org</a>\n\n"
|
text += "<a href='http://domtabs.sandflea.org/' color='blue'>http://domtabs.sandflea.org</a>\n\n"
|
||||||
@ -520,7 +522,7 @@ class DividerDrawer(object):
|
|||||||
|
|
||||||
# now draw the number of sets
|
# now draw the number of sets
|
||||||
if count > 1:
|
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 = stringWidth(count_string, self.font_mapping['Regular'], 10)
|
||||||
width_string -= 1 # adjust to make it closer to image
|
width_string -= 1 # adjust to make it closer to image
|
||||||
width += width_string
|
width += width_string
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user