Re: font tags

* Matt Williams wrote:
>Some of them are defined as <font color="#f00"> some as <font style="blah">.
>
>If I set drop-font-tags=on the all go obviously, if I set clean=on the font tags
>that contain the color element get changed to span tags with their color value
>added to the header, but the font tags with a style element get changed to just
><span> so it removes the style element from it.

Hmm,

  <p><font style="blah">...</font></p>
  <p><font color=red>...</font></p>
  <p><font color=red>...</font><font style='blah'>...</font></p>

gets (-clean)

  <style type="text/css">
   span.c4 {blah}
   span.c3 {color: red}
   p.c2 {color: red}
   p.c1 {blah}
  </style>
  ...
  <p class="c1">...</p>
  <p class="c2">...</p>
  <p><span class="c3">...</span><span class='c4'>...</span></p>

You run into trouble with -clean if you use both, font styles and the
style attribute, e.g.

  <p><font color=red style="blah">...</font></p>

where the style attribute is indeed removed, but you don't have this
case, do you? Do you have a small self-contained of what you think does
not work properly?

Received on Monday, 19 May 2003 14:10:09 UTC