View Single Post
Old 04-07-2012, 11:48 AM   #1
psikonauta
Junior Member
psikonauta began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Apr 2012
Device: Kindle 4 NT
Problem with italics in Blogger recipe

Hi! I'm very new to Calibre, and I've been trying to make a recipe for some blogs I like. I am having a problem with one of them regarding the use of italics. It seems that when the blog has a <i> tag, Calibre creates a <span class="italics"> tag inside a <p class="calibre_115">, separating the word in italics from the rest of the text. It does not happen with the <em> tag that another blog uses, so I've tried to replace I for EM adding this to the recipe:

Code:
preprocess_regexps = [
   (re.compile(r'<i>', re.DOTALL|re.IGNORECASE), lambda match: '<em>'),
   (re.compile(r'</i>', re.DOTALL|re.IGNORECASE), lambda match: '</em>')
]
But it still does not work. Any ideas? Thanks!
psikonauta is offline   Reply With Quote