https://bugs.documentfoundation.org/show_bug.cgi?id=100693
--- Comment #4 from Christoph Lutz <[email protected]> ---
This bug seems to be related to tdf:53992, but is not exactly the same, since
here it is about an formatting / interoperability issue regarding text frames
in LibreOffice and MS Word and the handling of (the graphic-style)
fo:wrap-option.
How to reproduce the issue:
- there's a document test4.odt that was created with LibreOffice and stored to
ODF
- open the attached document test4.odt in LibreOffice (find attached how
test4.odt should be displayed in LibreOffice)
- open the attached document test4.odt in MS Word 2013 (find attached how
test4.odt is currently displayed in MS Word)
You can see, that Word is not able to display the document correctly. The frame
on the right side of the first page is much too large and the text wrapping is
wrong.
This is how the document was created:
- opened a new writer document
- insert->frame
- options set on the frame:
- unset option for automatic height
- kept text wrapping "quadratic"
- choose no border
- moved the frame to the top right corner of the text area
- resized it to be about 5cm wide and fill the height of the text area
- add some text (bt<F3>) into the text area and into the frame to see how
wrapping works
- saved as ODF
Analysis:
For me it seems that LibreOffice and MS Office behave different regarding the
graphic-style option fo:wrap-option.
By introspecting styles.xml of test4, you can see, that LibreOffice sets
fo:wrap-option='no-wrap' as default graphic format.
The corresponding Textframe-style "fr1" is derived from the graphic style
"Frame" and this style sets style:wrap='parallel' (and more wrapping relevant
options). So if 'Frame's behaviour should enable text wrapping, why is
fo:wrap-option not set to fo:wrap-option='wrap'?
If I add fo:wrap-option='wrap' to the style-definition of 'Frame', the document
IS displayed correctly in MS Word. So obviously both implementations behave
different in when and how fo:wrap-option is interpreted.
According the the ODF 1.2 spec, I cannot find any reason why LibreOffice should
not write fo:wrap-option='wrap' whenever text wrapping should be active. So I
have to argue that even if LibreOffice is able to display the document correct,
It doesn't produce correct ODF according to the spec (regarding
fo:wrap-option). This bug should be fixed in LibreOffice to improve
interoperability with other ODF implementations.
--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs