Fix Prosperity rules text running over (#156)

This mostly fixes Issue #155.  This seems to occur only with the VP image.  I've seen several coin and potion, and debt images at the end of a line and they are justified correctly.  There is some strange interaction with the VP image and the paragraph wrap function in report.
While not completely fixing the image out of the normal paragraph boundary, at least this keeps it within the margins of the card.
This commit is contained in:
Wendel Voigt 2017-04-18 18:50:44 -05:00 committed by Peter
parent c5c876f8c5
commit 881b7281e9

View File

@ -232,7 +232,7 @@ class DividerDrawer(object):
fontsize_multiplier, fontsize_multiplier,
height_percent, height_percent,
text_fontsize_multiplier=None): text_fontsize_multiplier=None):
replace_template = '<img src="{fpath}" width={width} height="{height_percent}%" valign="middle" />&thinsp;' replace_template = '<img src="{fpath}" width={width} height="{height_percent}%" valign="middle" />'
offset = 0 offset = 0
for match in re.finditer(tag_pattern, text): for match in re.finditer(tag_pattern, text):
replace = replace_template replace = replace_template