From 98a13e267aef835ebb024aaab597ac6b4559992f Mon Sep 17 00:00:00 2001 From: Daniel Berlin Date: Tue, 21 Oct 2003 19:54:30 +0000 Subject: [PATCH] Fix multiline geekquotes --- plugins/Http.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/Http.py b/plugins/Http.py index e7dda3450..6bea689a8 100644 --- a/plugins/Http.py +++ b/plugins/Http.py @@ -260,6 +260,7 @@ class Http(callbacks.Privmsg): irc.error(msg, debug.exnToString(e)) _geekquotere = re.compile('

(.*?)

') + _mlgeekquotere = re.compile('

(.*?)

', re.M | re.DOTALL) def geekquote(self, irc, msg, args): """[] @@ -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: