fmt: consider the number of spaces while filling paragraphs
commitf1e9b608a0529f3867cc78fd00952d924d424c0f
authorAli Gholami Rudi <ali@rudi.ir>
Fri, 17 Oct 2014 16:15:08 +0000 (17 19:45 +0330)
committerAli Gholami Rudi <ali@rudi.ir>
Fri, 17 Oct 2014 16:15:08 +0000 (17 19:45 +0330)
tree359c8c74831abd3d0af9d696f1e1e8d4a4506b0e
parent690bf91cd6fd3ba6fa04d408a93ca7d108e74f65
fmt: consider the number of spaces while filling paragraphs

This updates the function for calculating the cost of breaking words
into lines to consider the number of spaces in each line.  The main
motivation is that a line with many spaces can be stretched much
better than a line with few large words.

This also updates the meaning of the argument of .hyp request: Now
useful values are between 0 and probably 1000; an argument of 100
assigns to each hyphenation the cost of stretching the spaces of the
line one hundred percent.  The default value is zero.
fmt.c