View Single Post
Old 07-18-2011, 07:27 AM   #3
paulfiera
Addict
paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.
 
paulfiera's Avatar
 
Posts: 387
Karma: 3102
Join Date: Dec 2010
Location: EU
Device: Kobo Aura ONE, Kobo Libra H20
Quote:
Originally Posted by user_none View Post
If it's part of the HTML itself search and replace will work. Search and replace however does not run over .css files. You could try:
Code:
(?mu)<style>.+</style>
as the search code. This should remove every style tag inline in the HTML.
Many thanks user_none.

Yes. It's inline style in the html, xhtml documents.

I've tried putting
Code:
(?mu)<style>.+</style>
in the First Expression in Search Regular Expression and Replacement Text, blank, but I end with all the font declarations in this format:

Quote:
@font-face {
font-family: DotumChe
}
It looks like the calibre conversion already strips many of the font attributes, but not the font declarations.

I also tried
Code:
(?mu)<style.+</style>
Note the missing closing tag in the first style occurrence, as in the html files it's declared as
Code:
<style type="text/css">
but same results.
paulfiera is offline   Reply With Quote