Fix multiline geekquotes

This commit is contained in:
Daniel Berlin 2003-10-21 19:54:30 +00:00
parent 52d4767601
commit 98a13e267a
1 changed files with 2 additions and 1 deletions

View File

@ -260,6 +260,7 @@ class Http(callbacks.Privmsg):
irc.error(msg, debug.exnToString(e))
_geekquotere = re.compile('<p class="qt">(.*?)</p>')
_mlgeekquotere = re.compile('<p class="qt">(.*?)</p>', re.M | re.DOTALL)
def geekquote(self, irc, msg, args):
"""[<multiline>]
@ -276,7 +277,7 @@ class Http(callbacks.Privmsg):
html = fd.read()
fd.close()
if multiline:
m = self._geekquotere.search(html, re.M)
m = self._mlgeekquotere.search(html)
else:
m = self._geekquotere.search(html)
if m is None: