Skip to content
Permalink
Browse files
Revert "irclogs clickable links"
  • Loading branch information
Kwpolska committed May 16, 2015
1 parent 51968d7 commit 2e588e9107234e10d45e2a10044aa8d99e9644bb
Showing with 0 additions and 3 deletions.
  1. +0 −3 v7/irclogs/irclogs.py
@@ -37,7 +37,6 @@

import os
import io
import re
import pygments
import pygments.lexers

@@ -60,7 +59,5 @@ def compile_html(self, source, dest, is_two_file=True):

formatter = NikolaPygmentsHTML('irclog', linenos=False)
data = pygments.highlight(data, lexer, formatter)
link_matcher = re.compile(r"(http[s]?://[^ ]+)")
data = link_matcher.sub(r'<a href="\1" rel="nofollow">\1</a>', data)
out_file.write(data)
return True

0 comments on commit 2e588e9

Please sign in to comment.