[Libreoffice-bugs] [Bug 82173] FILEOPEN: DOCX - "Footnote References" character styles incorrectly imported
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Sun Jun 4 15:09:09 UTC 2017
https://bugs.documentfoundation.org/show_bug.cgi?id=82173
--- Comment #17 from Yousuf Philips (jay) <philipz85 at hotmail.com> ---
(In reply to Justin L from comment #16)
> Both of those were *already* manually mapped to Heading 1. (You can look in
> my commit and see the duplicates that were already mapped to a single style.)
Yes that is true, but Word outputs 'Heading 1' as 'heading 1' in the xml, so
any idea why we were also mapping 'Heading 1' on import? In your
investigations, have you found documents which had 'Heading 1' instead of
'heading 1'?
> But certainly, if we find an example document where those are a problem, we
> can revert.
I was able to create a document in word 2010 and 2013 like this (attachment
133825), but when i reopen it, Word auto renames the user created 'heading 1'
to 'Heading 11'.
<w:style w:type="paragraph" w:styleId="Heading1">
<w:name w:val="heading 1" />
<w:basedOn w:val="Normal" />
<...>
</w:style>
<w:style w:type="paragraph" w:customStyle="1" w:styleId="heading10">
<w:name w:val="heading 1" />
<w:basedOn w:val="Heading1" />
<...>
</w:style>
There would need to be some error checking to see if a style has already been
created and another style is trying to overwrite it on import. The
w:customStyle attribute would also be helpful in finding out whether a style is
a built-in style or user-defined style.
> The main reason I did a "generic" fix was because I saw so many
> existing examples, and it didn't seem reasonable to keep adding them one by
> one as more were discovered.
Where can i find these examples?
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20170604/a5a1f225/attachment.html>
More information about the Libreoffice-bugs
mailing list