https://bugs.freedesktop.org/show_bug.cgi?id=47337

--- Comment #3 from Werner DonnĂ© <[email protected]> 2012-06-05 
06:40:15 PDT ---
It is bad because the paragraph style in the Word file has space before and
after set to 0pt for those items. Therefore, fo:margin="100%" is wrong.

After the import the style looks like this:

      <style:style style:name="lyst" style:family="paragraph"
style:parent-style-name="Standard">
         <style:paragraph-properties fo:margin="100%" fo:margin-left="3mm"
fo:margin-right="0mm" fo:orphans="2"
                                     fo:widows="2"
                                     fo:text-indent="-3mm"
                                     style:auto-text-indent="false"/>
         <style:text-properties fo:font-size="10pt"
style:font-size-asian="10pt" style:font-size-complex="10pt"/>
      </style:style>

This means that fo:margin-top and fo:margin-bottom both resolve to "100%",
which is not what the Word file says. The result is that the paragraphs have a
very large separation between them. However, LibreOffice doesn't show this
separation.

I suspect therefore that the following happens:

1) In Word the default for the margins is 0pt, which is why it isn't set
explicitly.
2) The LibreOffice input filter for Word or maybe LibreOffice itself sets
fo:margin="100%".
3) LibeOffice ignores the fo:margin shorthand and only uses the specific margin
properties fo:margin-left, etc.

If this is correct then the import is wrong as well as the interpretation of
the fo:margin shorthand property.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to