Quantcast
Channel: MobileRead Forums - Reading and Management
Viewing all articles
Browse latest Browse all 24093

Getting rid of inline styles

$
0
0
Hi

Using Sigil regex engine, I do not succeed to eradicate this kind of inline styles that one may find for example in the head part of some xhtml files:

Spoiler:

Code:

<style type="text/css">

  /*<![CDATA[*/

  p.sgc-9 {font-size:92%}
  span.sgc-8 {font-size:70%;vertical-align:super}
  span.sgc-7 {font-style:italic;font-size:92%}
  span.sgc-6 {font-style:italic}
  span.sgc-5 {font-size:92%}
  span.sgc-4 {font-size:133%}
  h1.sgc-3 {page-break-before:always}
  span.sgc-2 {font-size:108%}
  span.sgc-1 {font-size:150%}

  span.sgc-10 {font-weight: normal;}
  /*]]>*/
  </style>



I tried with:
Code:

<style type="text/css">(.*?)</style>
in regex mode with DotAll to no avail. Maybe the CDATA make a problem?

There must be a way :)

EDIT: My "problem" was a faulty selection of files. SOLVED. Sorry for this.

Viewing all articles
Browse latest Browse all 24093

Latest Images

Trending Articles



Latest Images