diff options
author | Russ Cox <[email protected]> | 2011-02-19 21:17:55 -0500 |
---|---|---|
committer | Russ Cox <[email protected]> | 2011-02-19 21:17:55 -0500 |
commit | cf4b1ad90bcaeeb0c8458098c87948f61d408f94 (patch) | |
tree | b6385b1d72af5a3e634b94b318fb7e43644493af /runoff1 | |
parent | 9c4fe7ba105c0430c90179fd1e93c3d439a8cbd5 (diff) | |
download | xv6-labs-cf4b1ad90bcaeeb0c8458098c87948f61d408f94.tar.gz xv6-labs-cf4b1ad90bcaeeb0c8458098c87948f61d408f94.tar.bz2 xv6-labs-cf4b1ad90bcaeeb0c8458098c87948f61d408f94.zip |
xv6: formatting, cleanup, rev5 (take 2)
Diffstat (limited to 'runoff1')
-rwxr-xr-x | runoff1 | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |