aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Vilcans <martin@librador.com>2014-11-12 15:57:12 +0100
committerMartin Vilcans <martin@librador.com>2014-11-12 16:00:20 +0100
commit304d397c163338e3b6caaca9f729a6d5e72f0b3b (patch)
treeca5d511725ead5c0a61f35ed710b23163a76b33e
parent617c1ab0ae79984c9e3064c7263422ef2ea808c2 (diff)
downloadscreenplain-304d397c163338e3b6caaca9f729a6d5e72f0b3b.tar.gz
Title page: 6 points of buffer to avoid blank page
Otherwise, for some input I got a blank second page.
-rw-r--r--screenplain/export/pdf.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/screenplain/export/pdf.py b/screenplain/export/pdf.py
index a22b933..6c2f1a6 100644
--- a/screenplain/export/pdf.py
+++ b/screenplain/export/pdf.py
@@ -206,7 +206,8 @@ def get_title_page_story(screenplay):
if top_space > 0:
story.append(Spacer(frame_width, top_space))
story += title_story
- middle_space = frame_height - top_space - title_height - lower_height
+ # The minus 6 adds some room for rounding errors and whatnot
+ middle_space = frame_height - top_space - title_height - lower_height - 6
if middle_space > 0:
story.append(Spacer(frame_width, middle_space))
story += lower_story