Skip to content

Commit

Permalink
Revert "irclogs clickable links"
Browse files Browse the repository at this point in the history
  • Loading branch information
Kwpolska committed May 16, 2015
1 parent 51968d7 commit 2e588e9
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions v7/irclogs/irclogs.py
Expand Up @@ -37,7 +37,6 @@

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

Expand All @@ -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.