Ahh, so will there only ever be a <br> at the end of the word? Since I think '<br>.*$' and Raoul's rfind will get rid of the last <br> and everything after it. 'abc<br>def' -> 'abc'.
Which is why I suggested '<br>$'. Although I accept string operations are quicker. Also I think Raoul's ":" is in the wrong place? newstr = oldstr[:oldstr.rfind(u'<br>')] -- https://code.launchpad.net/~googol-hush/openlp/render/+merge/59467 Your team OpenLP Core is subscribed to branch lp:openlp. _______________________________________________ Mailing list: https://launchpad.net/~openlp-core Post to : [email protected] Unsubscribe : https://launchpad.net/~openlp-core More help : https://help.launchpad.net/ListHelp

