Ticket #3458: 3458.patch

File 3458.patch, 816 bytes (added by Artur Formella, 10 years ago)
  • _source/plugins/pastefromword/dialogs/pastefromword.js

     
    3030                        html = html.replace( /\s*mso-[^:]+:[^;"]+;?/gi, '' ) ;
    3131
    3232                        // Remove margin styles.
    33                         html = html.replace( /\s*MARGIN: 0cm 0cm 0pt\s*;/gi, '' ) ;
    34                         html = html.replace( /\s*MARGIN: 0cm 0cm 0pt\s*"/gi, "\"" ) ;
     33                        html = html.replace( /\s*MARGIN: 0(?:cm|in) 0(?:cm|in) 0pt\s*;/gi, '' ) ;
     34                        html = html.replace( /\s*MARGIN: 0(?:cm|in) 0(?:cm|in) 0pt\s*"/gi, "\"" ) ;
    3535
    3636                        html = html.replace( /\s*TEXT-INDENT: 0cm\s*;/gi, '' ) ;
    3737                        html = html.replace( /\s*TEXT-INDENT: 0cm\s*"/gi, "\"" ) ;
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy