Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Recipes

Notices

Reply
 
Thread Tools Search this Thread
Old 03-04-2011, 11:46 AM   #1
JFS-NMF
Junior Member
JFS-NMF began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Jan 2011
Device: nook
remove_tags does not work

I am having great difficulty creating recipes. Most recently, I have tried the following:


remove_tags = [dict(name='div', attrs={'class':'clearfix'})]
remove_tags_after = [dict(name='div',attrs={'id':'wrapper'})]

Neither line has any effect on that is produced; no tags are removed.
Is there some other syntax or element required in the recipe for for these lines to work?
JFS-NMF is offline   Reply With Quote
Old 03-04-2011, 01:56 PM   #2
Starson17
Wizard
Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.
 
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
Quote:
Originally Posted by JFS-NMF View Post
I am having great difficulty creating recipes. Most recently, I have tried the following:


remove_tags = [dict(name='div', attrs={'class':'clearfix'})]
remove_tags_after = [dict(name='div',attrs={'id':'wrapper'})]

Neither line has any effect on that is produced; no tags are removed.
Is there some other syntax or element required in the recipe for for these lines to work?
Post your full recipe, inside CODE tags, and preferably also inside SPOILER tags and I'll take a look. Offhand, I suspect an indent error, or possibly a typo or misunderstanding of the page source html. In particular, remove_tags_after, can be tricky to get right.
Starson17 is offline   Reply With Quote
 
Enthusiast
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Which one will work for me? Adramandoni Which one should I buy? 6 02-21-2011 11:43 PM
Help Please: remove_tags doesn't work in WSJ Chinese Jmot Recipes 5 02-21-2011 04:10 AM
I will never get any work done now. sparrowgrass Introduce Yourself 13 07-17-2010 06:46 PM
iPad How well does it work outside? TallMomof2 Apple Devices 9 04-04-2010 06:49 PM
How does it work*? Sultan Rahi OpenInkpot 3 12-29-2009 08:59 AM


All times are GMT -4. The time now is 11:22 PM.


MobileRead.com is a privately owned, operated and funded community.