Ticket #6397: output_html.diff
File output_html.diff, 730 bytes (added by , 13 years ago) |
---|
-
.html
old new 187 187 if ( style ) 188 188 { 189 189 // Get the align from the style. 190 match = /(?:^| \s)text-align\s*:\s*(\w*);/i.exec( style );190 match = /(?:^|;)\s*text-align\s*:\s*(\w+)\s*(?:;|$)/i.exec( style ); 191 191 var align = match && match[1]; 192 192 193 193 if ( align ) 194 194 { 195 element.attributes.style = element.attributes.style.replace( /( ?:^|\s)text-align\s*:\s*(\w*);?/i , '' );195 element.attributes.style = element.attributes.style.replace( /(^|;)\s*text-align\s*:\s*\w+[\s;]*/i , '$1' ); 196 196 element.attributes.align = align; 197 197 } 198 198 }