Changeset 362


Ignore:
Timestamp:
09/30/05 05:40:08 (14 years ago)
Author:
niko
Message:

remove not only face="Arial", face=Arial works now too
(as this is used by IE sometimes)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/plugins/SuperClean/super-clean.js

    r179 r362  
    4444    if(opts.faces) 
    4545    { 
    46       D = D.replace(/face="[^"]*"/gi, ''); 
     46      D = D.replace(/face="?[^" >]*"?/gi, ''); 
    4747      // { (stops jedit's fold breaking) 
    4848      D = D.replace(/font-family:[^;}"']+;?/gi, ''); 
     
    5151    if(opts.sizes) 
    5252    { 
    53       D = D.replace(/size="[^"]*"/gi, ''); 
     53      D = D.replace(/size="?[^" >]*"?/gi, ''); 
    5454      // { (stops jedit's fold breaking) 
    5555      D = D.replace(/font-size:[^;}"']+;?/gi, ''); 
     
    5858    if(opts.colors) 
    5959    { 
    60       D = D.replace(/color="[^"]*"/gi, ''); 
     60      D = D.replace(/color="?[^" >]*"?/gi, ''); 
    6161      // { (stops jedit's fold breaking) 
    6262      D = D.replace(/([^-])color:[^;}"']+;?/gi, '$1'); 
Note: See TracChangeset for help on using the changeset viewer.