Thread Previous • Date Previous • Date Next • Thread Next |
So if removing multiple trailing <br>'s either newstr = re.sub(u'(<br>)*$', u'', oldstr) or while oldstr.endswith(u'<br>'): oldstr = oldstr[:-4] -- https://code.launchpad.net/~googol-hush/openlp/render/+merge/59467 Your team OpenLP Core is subscribed to branch lp:openlp.
Thread Previous • Date Previous • Date Next • Thread Next |