With word-wrap: break-word; if the word is going to break anyway, I dont want a line-break first, it is useless and ugly. How to avoid that?
Example:
Given a div with word-wrap: break-word; and a width equivalent to those 23 "x" characters like so:
xxxxxxxxxxxxxxxxxxxxxxx
The div innerHTML is "xx xxxxxxxxxxxxxxxxxxxxxxxxxxxx" like so:
<div>xx xxxxxxxxxxxxxxxxxxxxxxxxxxxx</div>
This is how the innerHTML of the div is displayed vs how it is wanted respecting the 23 "x" width.
What happens:
xx
xxxxxxxxxxxxxxxxxxxxxxx
xxxxx
What I want:
xx xxxxxxxxxxxxxxxxxxxxx
xxxxxxxx
word-break: break-all; and similar or more recent attributes are not a solution to the problem. I dont want words that can avoid breaking to break. I only want words with a width superior than the container width to break BUT without line-break first like with word-wrap: break-word; because it is simply useless and ugly.