This has been a very informative thread. Thanks to all.
Very useful for me in particular, because I like making poetry ebooks, and a dash at the end of a verse dropping to the next line looks plain awful. To avoid it, I've started to use the "nowrap" method proposed by Rubén in
post #17. Works great.
And I've come up with a regex that puts the nowrap span around the last word plus dash of each verse:
Find (note that there's a space at the beginning):
Replace with (again the space...):
Code:
<span class="nowrap">\1—</span></p>