From 9a1a28c804482157c26377c846a10bd6af21c635 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Thu, 3 Feb 2011 23:09:08 +0000 Subject: [PATCH] adding comments to filtering function --- lib/core/common.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/core/common.py b/lib/core/common.py index b133c00f5..a51fbbfe9 100644 --- a/lib/core/common.py +++ b/lib/core/common.py @@ -1286,8 +1286,7 @@ def getFilteredPageContent(page, onlyText=True): retVal = page if isinstance(page, basestring): - retVal = re.sub(r"(?s)|%s" % (r"|<[^>]+>|\t|\n|\r" if onlyText else ""), " ", page) - + retVal = re.sub(r"(?s)||%s" % (r"|<[^>]+>|\t|\n|\r" if onlyText else ""), " ", page) while retVal.find(" ") != -1: retVal = retVal.replace(" ", " ")