This commit is contained in:
Kovid Goyal 2010-11-05 18:41:08 -06:00
parent d58692854a
commit 7774eb6916

View File

@ -38,6 +38,7 @@ class LaJornada_mx(BasicNewsRecipe):
.loc{font-weight: bold} .loc{font-weight: bold}
.carton{text-align: center} .carton{text-align: center}
.credit{font-weight: bold} .credit{font-weight: bold}
.sumario{font-weight: bold; text-align: center}
.text{margin-top: 1.4em} .text{margin-top: 1.4em}
p.inicial{display: inline; font-size: xx-large; font-weight: bold} p.inicial{display: inline; font-size: xx-large; font-weight: bold}
p.s-s{display: inline; text-indent: 0} p.s-s{display: inline; text-indent: 0}
@ -53,7 +54,10 @@ class LaJornada_mx(BasicNewsRecipe):
preprocess_regexps = [ preprocess_regexps = [
(re.compile( r'<div class="inicial">(.*)</div><p class="s-s">' (re.compile( r'<div class="inicial">(.*)</div><p class="s-s">'
,re.DOTALL|re.IGNORECASE) ,re.DOTALL|re.IGNORECASE)
,lambda match: '<p class="inicial">' + match.group(1) + '</p><p class="s-s">') ,lambda match: '<p class="inicial">' + match.group(1) + '</p><p class="s-s">'),
(re.compile( r'<q>(.*?)</q>'
,re.DOTALL|re.IGNORECASE)
,lambda match: '"' + match.group(1) + '"')
] ]
keep_only_tags = [ keep_only_tags = [