I'm looking for a way to specify where a line should break if it cannot fit on its line in a way similar to ­
(soft/discretionary hyphen), but with a space. I tried googling it but didn't get many relevant hits (mostly for InDesign despite specifying "html"), and what I did get was a few people saying they didn't know of a way.
Ex.
Hello, my name
is foo.
vs.
Hello,
my name is foo.
but if space is available:
Hello, my name is foo.
For specificity, I do not mean white-space: normal/nowrap/pre/…
and I don't want to force a break like with <br />
.
I'm using AngularJS, so most everything is processed thru JavaScript, so if there's an easy/efficient/clever way to do it with that, I'd be open to it.