Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Revert "irclogs clickable links"
- Loading branch information
Showing
with
0 additions
and
3 deletions.
-
+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 |