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))
|
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:
|
||||||
|
Loading…
Reference in New Issue
Block a user