forked from openlp/openlp
fixed missing r'' and removed argument
This commit is contained in:
parent
19f9718aec
commit
ac32b6ca65
@ -44,7 +44,7 @@ from openlp.core.utils import get_web_page
|
|||||||
from openlp.plugins.bibles.lib import SearchResults
|
from openlp.plugins.bibles.lib import SearchResults
|
||||||
from openlp.plugins.bibles.lib.db import BibleDB, BiblesResourcesDB, Book
|
from openlp.plugins.bibles.lib.db import BibleDB, BiblesResourcesDB, Book
|
||||||
|
|
||||||
CLEANER_REGEX = re.compile(' |<br />|\'\+\'')
|
CLEANER_REGEX = re.compile(r' |<br />|\'\+\'')
|
||||||
FIX_PUNKCTUATION_REGEX = re.compile(r'[ ]+([.,;])')
|
FIX_PUNKCTUATION_REGEX = re.compile(r'[ ]+([.,;])')
|
||||||
REDUCE_SPACES_REGEX = re.compile(r'[ ]{2,}')
|
REDUCE_SPACES_REGEX = re.compile(r'[ ]{2,}')
|
||||||
UGLY_CHARS = {
|
UGLY_CHARS = {
|
||||||
@ -699,7 +699,7 @@ def get_soup_for_bible_ref(reference_url, header=None, pre_parse_regex=None,
|
|||||||
try:
|
try:
|
||||||
if cleaner:
|
if cleaner:
|
||||||
# FIXME: markupMassage not supported.
|
# FIXME: markupMassage not supported.
|
||||||
soup = BeautifulSoup(page_source, markupMassage=cleaner)
|
soup = BeautifulSoup(page_source)#, markupMassage=cleaner)
|
||||||
else:
|
else:
|
||||||
soup = BeautifulSoup(page_source)
|
soup = BeautifulSoup(page_source)
|
||||||
except HTMLParseError:
|
except HTMLParseError:
|
||||||
|
Loading…
Reference in New Issue
Block a user