Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
x/tools/cmd/godoc: avoid line orphans #20278
AFAIK, there is nothing in css to control breaking whole words. https://stackoverflow.com/questions/27400192/css-prevent-line-in-text-to-only-contain-one-word
We generally use the
Think of it, you would need to detect if there is only a single word in the next line and do something to break the line before. Unless, you want to use js to tackle this, I don't see a solution.
The general method I've seen is replace the last space with