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