https://bugs.documentfoundation.org/show_bug.cgi?id=170306
Bug ID: 170306
Summary: DOCX import adds spacing to inline images
Product: LibreOffice
Version: 24.2.7.2 release
Hardware: All
OS: Linux (All)
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: filters and storage
Assignee: [email protected]
Reporter: [email protected]
Description:
DOCX importing adds spacing to inline images when the DOCX is created by
Pandoc.
I tested this with LibreOffice 25.8.4.2 and 24.2.7.2, plus Office 365.
I won't mind if someone can whip up a macro that removes the spacing around all
inline images. I'm going to need it as I'm battling issues with ePubs and
various eReaders not rendering fonts and glyphs properly.
Steps to Reproduce:
1. Have the following:
* Pandoc (Yes, I know you can natively open Markdown but bear with me
because I use an odd flavor and I do some conversion before hitting Pandoc)
* Two SVG files, start.svg and end.svg (I've tested against multiple
versions)
2. Create a Markdown file with this content:
```
![Begin] Test line ![End]
[Begin]: start.svg {height=12pt}
[End]: end.svg {height=12pt}
```
3. Convert the Markdown file into a DOCX via Pandoc:
```
pandoc test.md -f
markdown+bracketed_spans+backtick_code_blocks+fenced_divs+link_attributes+implicit_figures
-t docx -o text.docx
```
4. Open the resulting file in LibreOffice
5. Inspect the inline images.
Actual Results:
In LibreOffice, they have a spacing of .13" left and right. *This is not
correct!*
Expected Results:
In Office 365, they have *no* spacing. *This is correct!*
Reproducible: Always
User Profile Reset: No
Additional Info:
Version: 25.8.4.2 (X86_64) / LibreOffice Community
Build ID: 580(Build:2)
CPU threads: 16; OS: Linux 6.14; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Ubuntu package version: 4:25.8.4~rc2-0ubuntu0.24.04.1~lo1
Calc: threaded
Build from the libreoffice PPA.
--
You are receiving this mail because:
You are the assignee for the bug.