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)Published at
2023-06-08 22:36:19Event JSON
{
"id": "d3e017830420da4288c416d85ca919cfb622936908b839daf4d4d47c196e3a9a",
"pubkey": "1ea5c2d0e935fb9fa76516688fbe2515d64704ee93ac3abf4198b15a125376e6",
"created_at": 1686263779,
"kind": 1,
"tags": [
[
"p",
"d632bfe3b6263caec93c0c90d44db6e34893668ab789a5fda98535995d6268c7",
"wss://relay.mostr.pub"
],
[
"p",
"c4e3da7e259c6e848c077a13aa8806dfc3794ae55debee88e5f288b288c6276f",
"wss://relay.mostr.pub"
],
[
"t",
"cssday"
],
[
"mostr",
"https://front-end.social/users/kizu/statuses/110510983076502114"
]
],
"content": "To go sleep before the next day of #CSSDay, or… play with `text-wrap: pretty`?\n\nQuick findings :\n\n1. It is basically preventing the orphan word (the lonely word in the end) by moving an additional word alongside it.\n2. The actual algorithm seems to take into account the length of the word \u0026 seemingly how the last two lines are composed. \n3. There is no line limit compared to `balance`. \n4. It only does this to the final lines: cases in the middle with a lonely word are not handled.\n\n/cc nostr:npub16cetlcakyc72ajfupjgdgndkudyfxe52k7y6tldfs56ejhtzdrrs4erq62",
"sig": "820ce8bbbe2b6dec6e21d754a55862bae4f2d24a91d4964226e7efdf8ce4ca838c6697533794e6ccc2441cf03f44584aa5e38cf8f5a611efd9bac448fee5c65d"
}