html line break #25

Closed
wants to merge 1 commit into from

2 participants

@steeb

i fixed the line break when receiving html messeages

@afflux

Doesn't work for me:

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

I'll go for

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

Thoughts?

@steeb
@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