mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-23 10:34:19 +01:00
Fix multiline geekquotes
This commit is contained in:
parent
52d4767601
commit
98a13e267a
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user