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

            Bug ID: 145987
           Summary: Writer typesets identically defined automatic and
                    custom graphic-styles differently
           Product: LibreOffice
           Version: 7.2.2.2 release
          Hardware: All
                OS: Linux (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Writer
          Assignee: [email protected]
          Reporter: [email protected]

Created attachment 176618
  --> https://bugs.documentfoundation.org/attachment.cgi?id=176618&action=edit
Test file.  Contains detailed descrption of the problem

LibreOffice typesets /identically defined/ automatic and custom
`grahic'-styles differently

Please `unzip' this file, and examine `styles.xml' and `content.xml'
therein.

`OrgShape'
      A custom style defined in `styles.xml'
`OrgShape1'
      An automatic style defined in `content.xml'

Note that both the `OrgShape' and `OrgShape1' have /*the exact same
specification*/.

The shape below uses the custom style `OrgShape'

Laborum officia ullamco labore esse cupidatat non tempor irure magna
sint adipiscing ex qui ad ut.  Adipiscing id labore cillum sunt anim
dolor ad aliqua adipiscing sit esse tempor reprehenderit minim pariatur.

The shape below uses the automatic style `OrgShape1'

Laborum officia ullamco labore esse cupidatat non tempor irure magna
sint adipiscing ex qui ad ut.  Adipiscing id labore cillum sunt anim
dolor ad aliqua adipiscing sit esse tempor reprehenderit minim pariatur.

*Problems Obverved*

1. The `style:wrap="none"' is /*not*/ honored in the first shape.
2. The first shape is /*not*/ centered vertically and horizontally
   within it's parent paragraph, while the second shape is centered
   within it's parent paragraph.
3. The text within the first shape in /*not*/ padded, but that within
   the second shape is padded.

*Expected Behaviour*

The first shape should be typeset /*exactly same*/ as the second
shape. i.e., *Why does LibreOffice typeset styles that are /defined
identically/ but /defined in different places/ very /differently/?  I
expect a /consistent/ behaviour!*

*Desired Behaviour*

When I save the file, LibreOffice removes the
`style:horizontal-pos="center"', `style:horizontal-rel="paragraph"',
`style:vertical-pos="top"' and `style:vertical-rel="paragraph"' and
replaces it with absolute positions `svg:x="xxcm"' and `svg:y="yycm"'.
I would prefer that it retains and honors the parapraph-relative
positions.

*Context*

This bug is identified while trying to produce a `Google
Documents'-compatible ODT file using LibreOffice.  See [A simple
document with a captioned image (produced in LibreOffice by hand) isn't
displayed properly when uploaded to Google Docs] for a detailed report.

*LibreOffice Used*

┌────
│ $ uname -a
│ Linux debian 5.14.0-4-amd64 #1 SMP Debian 5.14.16-1 (2021-11-03) x86_64
GNU/Linux
└────

┌────
│ $ dpkg -l | grep writer
│ ii  libreoffice-writer 1:7.2.2-1 amd64 office productivity suite -- word
processor
└────

┌────
│ Version: 7.2.2.2 / LibreOffice Community
│ Build ID: 20(Build:2)
│ CPU threads: 4; OS: Linux 5.14; UI render: default; VCL: x11
│ Locale: en-IN (en_IN.UTF-8); UI: en-US
│ Debian package version: 1:7.2.2-1
│ Calc: threaded
└────


[A simple document with a captioned image (produced in LibreOffice by
hand) isn't displayed properly when uploaded to Google Docs]
<https://github.com/kjambunathan/org-mode-ox-odt/issues/136>

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

Reply via email to