What is Nostr?
Roma Komarov /
npub1r6j…40lw
2023-06-08 22:36:19

Roma Komarov on Nostr: To go sleep before the next day of #CSSDay, or… play with `text-wrap: pretty`? ...

To go sleep before the next day of #CSSDay, or… play with `text-wrap: pretty`?

Quick findings :

1. It is basically preventing the orphan word (the lonely word in the end) by moving an additional word alongside it.
2. The actual algorithm seems to take into account the length of the word & seemingly how the last two lines are composed.
3. There is no line limit compared to `balance`.
4. It only does this to the final lines: cases in the middle with a lonely word are not handled.

/cc npub16cetlcakyc72ajfupjgdgndkudyfxe52k7y6tldfs56ejhtzdrrs4erq62 (npub16ce…rq62)
Author Public Key
npub1r6ju958fxhaelfm9ze5gl039zhtywp8wjwkr406pnzc45yjnwmnq6m40lw