~mdw
/
sgt
/
halibut
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fine-tuned the page breaking algorithm by adding penalties and
[sgt/halibut]
/
paper.h
diff --git
a/paper.h
b/paper.h
index
c537dd2
..
8478e25
100644
(file)
--- 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;