From 5388ccc5ef5f80ce1b5735b0159147ee64779530 Mon Sep 17 00:00:00 2001 From: witekfl Date: Thu, 2 Feb 2006 16:04:11 +0100 Subject: [PATCH] hooks.py: annulled black background on cygwin.com --- contrib/python/hooks.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/contrib/python/hooks.py b/contrib/python/hooks.py index fe75b5f6..4aa69090 100644 --- a/contrib/python/hooks.py +++ b/contrib/python/hooks.py @@ -1,3 +1,5 @@ +import re + dumbprefixes = { "7th" : "http://7thguard.net/", "b" : "http://babelfish.altavista.com/babelfish/tr", @@ -31,6 +33,9 @@ def follow_url_hook(url): return None def pre_format_html_hook(url, html): + if re.search("cygwin\.com", url): + html2 = re.sub("