Ticket #6397: output_html.diff

File output_html.diff, 730 bytes (added by Konstantin Pelepelin, 15 years ago)

patch to output_html.html

  • .html

    old new  
    187187                                                if ( style )
    188188                                                {
    189189                                                        // 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 );
    191191                                                        var align = match && match[1];
    192192
    193193                                                        if ( align )
    194194                                                        {
    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' );
    196196                                                                element.attributes.align = align;
    197197                                                        }
    198198                                                }
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy