Calibre Editor: Edit/Convert docx file, wrong indentation for lists
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
calibre |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Hello Kovid,
there seems to be an unwanted offset for list items when I use an imported docx file as starting document in the editor. Please find attached a set of files that shows what the problem is. The files are test.docx (MS-Word 2019, with standard format template), test.pdf and test.epub. The pdf is ment as representation of the docx file to see how the file should look like.
There is as well a difference for list items where the list identifier isn't a dot or a number but instead a symbol (see last example in the text). Not quite sure if that was implemented in the past
There is as well a discussion at mobileread https:/
Workflow: Open docx file with calibre editor directly.
Calibre version 7.12, Windows 10-64bit
Symbols are not supported, beyond the ones defined in CSS. As for the
extra padding, that comes from the default user agent stylesheet of the
browser/viewer used to view the EPUB. You can override it by adding
ul, ol { padding- inline- start: 0 }
to the extra css when converting. The docx input plugin doesn't do this
automatically because it breaks rendering of the lists in some cases.
That said, I can no longer get anything I currently have access to,
to break when setting the padding to zero, so I will change that for the
next release.