From cf4b1ad90bcaeeb0c8458098c87948f61d408f94 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Sat, 19 Feb 2011 21:17:55 -0500 Subject: xv6: formatting, cleanup, rev5 (take 2) --- runoff1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'runoff1') 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; -- cgit v1.2.3