add a ratio to decide when to create a justified line
Merge pull request #513 from kolyvan/justify

add a ratio to decide when to create a justified line