html line break #25

wants to merge 1 commit into from

2 participants


i fixed the line break when receiving html messeages


Doesn't work for me:

>>> print re.sub(r'(.*)<br ?\?>(.*)', r'\1\n\1', 'foo<br>bar')

I'll go for

re.sub(r'<br */?>', '\n', s)


@afflux afflux closed this Oct 15, 2012
@afflux afflux added a commit that referenced this pull request Oct 15, 2012
@afflux afflux gotr: fix line break handling (issue #25) 25e129f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment