https://bugs.documentfoundation.org/show_bug.cgi?id=96499

--- Comment #14 from Kevin Suo <[email protected]> ---
I submitted another patch:
https://gerrit.libreoffice.org/c/core/+/123715

With this patch, the "test file 2" (attachment 175756) is not opened correctly
with the MSO-Number-Formats applied, the ID numbers are shown correctly as
TEXT.

However, attachment 121310 (i.e. the one which has Chinese char property-values
unquoted. Anyone who has any idea how to add quotes to those chars? The css
OSring looks like this:

.style0
        {mso-number-format:"General";
        text-align:general;
        ...
        font-family:宋体;
        mso-font-charset:134;
        ...
        mso-style-id:0;}
.style16
        {mso-number-format:"_ \0022\00A5\0022* \#\,\#\#0_ \;_ \0022\00A5\0022*
\\-\#\,\#\#0_ \;_ \0022\00A5\0022* \0022-\0022_ \;_ \@_ ";
        mso-style-name:"货币[0]";
        mso-style-id:7;}

The unquoted "font-family:宋体;" should be changed to "font-family:'宋体';" before
passed to orcus::css_parser in ScHTMLQueryParser::ParseStyle

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to