View Single Post
Old 10-11-2017, 03:20 AM   #42
doubleshuffle
Unicycle Daredevil
doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.
 
doubleshuffle's Avatar
 
Posts: 13,944
Karma: 185432100
Join Date: Jan 2011
Location: Planet of the Pudding Brains
Device: Aura HD (R.I.P. After six years the USB socket died.) tolino shine 3
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):
Code:
 ([^\s]*)—</p>
Replace with (again the space...):
Code:
 <span class="nowrap">\1—</span></p>
doubleshuffle is offline   Reply With Quote