Quantcast
Channel: MobileRead Forums - Calibre
Viewing all articles
Browse latest Browse all 31520

Problem with italics in Blogger recipe

$
0
0
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!

Viewing all articles
Browse latest Browse all 31520

Trending Articles