View Single Post
Old 11-26-2014, 02:34 PM   #1
cyttorak
Member
cyttorak began at the beginning.
 
Posts: 18
Karma: 10
Join Date: Nov 2014
Device: Kobo Mini
Question How detelete empty paragraph?

Hi

I'm writing this recipe:

Code:
class AdvancedUserRecipe1416065639(BasicNewsRecipe):
	title	= u'Ganemos Feminismos'
	oldest_article = 365
	max_articles_per_feed = 100
	auto_cleanup = True
	reverse_article_order = True
	remove_empty_feeds = True
	language = 'es_ES'
	publisher = 'Ganemos'
	publication_type = 'actas'
	feeds	= [(u'Feminismos', u'http://ganemosmadrid.info/category/actas/actas_feminismos/feed/')]
	extra_css = '.calibre_navbar, *:empty {display:none;}'
	preprocess_regexps = [
		(re.compile(r' ',re.DOTALL|re.IGNORECASE), lambda match: ''),
		(re.compile(r'\s*<p[^>]*>\s*</p>\s*',re.DOTALL|re.IGNORECASE), lambda match: '')
	]

	def get_cover_url(self):
		return 'http://ganemosmadrid.info/wp-content/uploads/2014/11/GM_ORG_SEPT.png'
but I'm still see empty paragraph in my .epub. I see the line blank for each:
Quote:
<p>&nbsp;</p>
I get:

Code:
<p class="calibre8"> </p>
how can I delete this kind of empty tags?

Thanks

Last edited by cyttorak; 11-26-2014 at 05:20 PM.
cyttorak is offline   Reply With Quote