summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--askbot/utils/markup.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/askbot/utils/markup.py b/askbot/utils/markup.py
index e458e381..3b16a5b2 100644
--- a/askbot/utils/markup.py
+++ b/askbot/utils/markup.py
@@ -1,4 +1,5 @@
import re
+import logging
from askbot import const
from askbot.conf import settings as askbot_settings
from markdown2 import Markdown
@@ -29,10 +30,13 @@ def get_parser():
# Check whether we have matching links for all key terms, Other wise we ignore the key terms
# May be we should do this test in update_callback?
- print len(pattern_list), len(url_list)
if len(pattern_list) == len(url_list):
for i in range(0,len(pattern_list)):
LINK_PATTERNS.append((re.compile(pattern_list[i].strip()),url_list[i].strip()))
+ else:
+ settings_url = askbot_settings.APP_URL+'/settings/AUTOLINK/'
+ logging.debug("Number of keyterms didn't match the number of links, fix this by visiting" + settings_url)
+
return Markdown(
html4tags=True,