From 881b7281e90c4aaec88f9507e8c6ca64bb07198f Mon Sep 17 00:00:00 2001 From: Wendel Voigt Date: Tue, 18 Apr 2017 18:50:44 -0500 Subject: [PATCH] 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. --- domdiv/draw.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/domdiv/draw.py b/domdiv/draw.py index 7583481..9296995 100644 --- a/domdiv/draw.py +++ b/domdiv/draw.py @@ -232,7 +232,7 @@ class DividerDrawer(object): fontsize_multiplier, height_percent, text_fontsize_multiplier=None): - replace_template = ' ' + replace_template = '' offset = 0 for match in re.finditer(tag_pattern, text): replace = replace_template