summaryrefslogtreecommitdiff
path: root/runoff1
diff options
context:
space:
mode:
Diffstat (limited to 'runoff1')
-rwxr-xr-xrunoff12
1 files changed, 1 insertions, 1 deletions
diff --git a/runoff1 b/runoff1
index ba42e8f..532f844 100755
--- a/runoff1
+++ b/runoff1
@@ -33,7 +33,7 @@ for($i=0; $i<@lines; ){
last if $i>=@lines;
# If the rest of the file fits, use the whole thing.
- if(@lines <= $i+50){
+ if(@lines <= $i+50 && !grep { /PAGEBREAK/ } @lines){
$breakbefore = @lines;
}else{
# Find a good next page break;