Commit 8f2f8d43 authored by Romain Loth's avatar Romain Loth

retour des balises <p> dans EuropressFileParser

parent f0cdf7d4
......@@ -143,7 +143,10 @@ class EuropressFileParser_fr(FileParser):
try:
text = scrap_text(html_article.xpath(text_xpath))
hyperdata['abstract'] = ' '.join([ p_text for p_text in title[1:] + text])
hyperdata['abstract'] = '\n'.join([ '<p>\n'+p_text+'</p>\n' for p_text in title[1:] + text])
# join([ ' <p> ' + p + ' </p> ' for p in title[1:] + text])
except:
pass
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment