.Is this for online only, or do you have a print output as well?
I've had some good success for HTML5 output using the CSS
white-space property, with a value of
pre. I set up a span style as follows:
- Code: Select all
span.no-wrap
{
white-space: pre;
}
Then to implement it, simply span the text you don't want to wrap, for example:
- Code: Select all
<p class="bodyText">Lorem ipsum dolor sit amet, consectetur adipiscing elit. <span class="no-wrap">Etiam augue nulla, convallis vel gravida at, feugiat</span> in dui. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc congue nec purus sit amet eleifend. Nulla euismod ex a cursus convallis.</p>
The first line should break after "adipiscing elit." Unfortunately, I haven't had much luck using
white-space for print (PDF) output.
I hope that helps,
-jeff