summaryrefslogtreecommitdiff
path: root/paper.h
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2004-04-13 19:41:36 +0000
committerSimon Tatham <anakin@pobox.com>2004-04-13 19:41:36 +0000
commit093ff06eca116ac8d6dfa01d5d25473f91dc2d11 (patch)
treee5c6f28fea6f7ab98f38b2d116c1d86f3fb11548 /paper.h
parent89d8cbabf86d1e0254d020fc2da5456bb1b41013 (diff)
downloadhalibut-093ff06eca116ac8d6dfa01d5d25473f91dc2d11.zip
halibut-093ff06eca116ac8d6dfa01d5d25473f91dc2d11.tar.gz
halibut-093ff06eca116ac8d6dfa01d5d25473f91dc2d11.tar.bz2
halibut-093ff06eca116ac8d6dfa01d5d25473f91dc2d11.tar.xz
Fine-tuned the page breaking algorithm by adding penalties and
bonuses for breaking in particular places. (For example, it's especially bad to break just after a heading, and especially good to break just before one.) [originally from svn r4064]
Diffstat (limited to 'paper.h')
-rw-r--r--paper.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/paper.h b/paper.h
index c537dd2..8478e25 100644
--- a/paper.h
+++ b/paper.h
@@ -182,6 +182,10 @@ struct line_data_Tag {
int space_after;
int line_height;
/*
+ * Penalties for page breaking before or after this line.
+ */
+ int penalty_before, penalty_after;
+ /*
* These fields are used in the page breaking algorithm.
*/
int bestcost;