yex.box.Penalty
yex.box.Penalty(demerits)
#
The cost of breaking the line at this place.
When we divide a paragraph into lines, some places are better to break at than others. Usually we work these out automatically, but this instructs the algorithm specifically.
Attributes:
| Name | Type | Description |
|---|---|---|
demerits |
int
|
the cost of breaking at this place. |
Source code in yex/box/gismo.py
335 336 337 | |