https://bugzilla.redhat.com/show_bug.cgi?id=1119711
Bug ID: 1119711 Summary: 2nd and 3rd level bulleted lists do not get a proper bullet symbol Product: Fedora Version: 20 Component: pandoc Assignee: petersen@redhat.com Reporter: bexelbie@redhat.com QA Contact: extras-qa@fedoraproject.org CC: haskell-devel@lists.fedoraproject.org, petersen@redhat.com
Created attachment 918117 --> https://bugzilla.redhat.com/attachment.cgi?id=918117&action=edit Picture of the broken bullets in Libre Office Writer
Description of problem:
When converting to ODT from Markdown and HTML, second and third level bullets in a bulleted list are the "missing symbol" symbol.
Version-Release number of selected component (if applicable):
On Fedora 20: pandoc 1.12.3.3 Compiled with texmath 0.6.6.1, highlighting-kate 0.5.6.
How reproducible:
Always
Steps to Reproduce: 1. Create this markdown document
foo.md -- * Level 1 OK * Level 2 broken * Level 3 broken * Level 4 OK --
2. Execute:
pandoc -f markdown -t odt -o foo.odt foo.md
3. Open foo.odt in Libre Office Writer
Actual results:
Messed up bullets (see image)
Expected results:
Proper Bullets
Additional info:
This does not seem to be a problem with reference.odt. The style settings there all appear OK. My best guess is that pandoc is forcing either a font or bullet symbol that isn't shipped on Fedora and is overriding the default styling in reference.odt.
https://bugzilla.redhat.com/show_bug.cgi?id=1119711
--- Comment #1 from Jens Petersen petersen@redhat.com --- Thanks for the report.
I suggest also reporting this to upstream: either to the google group or in the github issue tracker, and then let's see what upstream says.
Also it would be interesting to know what symbol/glyph is being used... You could try dragging/copy'n'pasting the char to gucharmap for example to find out.
https://bugzilla.redhat.com/show_bug.cgi?id=1119711
Brian (bex) Exelbierd bexelbie@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |CLOSED Resolution|--- |UPSTREAM Last Closed| |2014-07-16 07:03:03
--- Comment #2 from Brian (bex) Exelbierd bexelbie@redhat.com --- A bit more clarity was posted in https://github.com/jgm/pandoc/issues/1400
Github didn't notify me of the update and I missed it before today. It appears that there is a forced font.
I am going to close this and try to engage upstream.
https://bugzilla.redhat.com/show_bug.cgi?id=1119711
--- Comment #3 from Jens Petersen petersen@redhat.com --- The missing character is U+2023 TRIANGULAR BULLET.
I agree it seems to be a font issue.
https://bugzilla.redhat.com/show_bug.cgi?id=1119711
--- Comment #4 from Jens Petersen petersen@redhat.com --- But you're right, the liststyles seems to be generated by pandoc:
./Text/Pandoc/Writers/OpenDocument.hs:193: automaticStyles = inTagsIndented "office:automatic-styles" $ vcat $ ./Text/Pandoc/Writers/OpenDocument.hs:196: $ defField "automatic-styles" (render' automaticStyles)
https://bugzilla.redhat.com/show_bug.cgi?id=1119711
--- Comment #5 from Brian (bex) Exelbierd bexelbie@redhat.com --- The github issue is running dry again. It appears the code was developed by someone who doesn't really monitor the project as a whole.
I don't know enough about ODT, but are we guaranteed any styles in an ODT file? In otherwords, could we switch the code to use a list format we are positive will always be there? I found where the styles are getting injected, but there is no check to see if they are duplicates.
https://bugzilla.redhat.com/show_bug.cgi?id=1119711
Jens Petersen petersen@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|CLOSED |ASSIGNED Resolution|UPSTREAM |--- Keywords| |Reopened
--- Comment #6 from Jens Petersen petersen@redhat.com --- IMO pandoc should generate ODT that uses the default ODT style by default. How does one specify a template file with pandoc? I would need to stare at the code for a while to get any idea how this could be fixed though maybe it is better we move the discussion to the upstream bug.
I would prefer if pandoc only injected automatic-styles if overriding the ODT defaults.
I don't have time to look at this right now but I think I will re-open to try to revisit this later. It may be a few months though... Of course if someone can come up with a patch first then that is most welcome too.
https://bugzilla.redhat.com/show_bug.cgi?id=1119711
--- Comment #7 from Brian (bex) Exelbierd bexelbie@redhat.com --- There is a flag --reference-odt=filename.odt to call the reference file.
I did a bit more digging in the code and I believe the following to be true:
the ODT.hs writer opens the reference.odt and puts it verbatim into the output. It doesn't parse it or look to see if there are styles it can use.
It also doesn't appear that OpenDocument defines default styles or style names. It appears this is all implementation dependent. Therefore, the fact that I have a bullet list defined in my reference.odt isn't being considered. It seems the way to fix this is to do one of the following (rough ideas):
1) Search the odt styles and figure out if there is a bullet list. If so, pick one and use it. If not create our own default, ideally with bullets we can reasonably guarantee to exist.
2) Do something like the reST (reStructuredText) converter does and specify what styles will be used. Those can then be defined in the shipped reference.odt and supplied in a user provided reference.odt. You can see their documentation here: http://docutils.sourceforge.net/docs/user/odt.html#list-styles I don't know that it is necessary to go further with allowing those names to be overriden.
Today's standard of using some LO style names and then defining custom lists seems to be a weird hybrid.
Lastly, it appears that bulletListToOpenDocument in the OpenDocument.hs writer is creating a new list style for each level of indention. This seems to indicate that listhandling may need to be refactored.
I realize you aren't going to work on it immediately, but I wanted to add these thoughts in case they help later.
https://bugzilla.redhat.com/show_bug.cgi?id=1119711
--- Comment #8 from Fedora End Of Life endoflife@fedoraproject.org --- This message is a reminder that Fedora 20 is nearing its end of life. Approximately 4 (four) weeks from now Fedora will stop maintaining and issuing updates for Fedora 20. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a Fedora 'version' of '20'.
Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version.
Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora 20 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior this bug is closed as described in the policy above.
Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete.
https://bugzilla.redhat.com/show_bug.cgi?id=1119711
Jens Petersen petersen@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Version|20 |rawhide
--- Comment #9 from Jens Petersen petersen@redhat.com --- Still same with pandoc-1.13.2.
https://bugzilla.redhat.com/show_bug.cgi?id=1119711
--- Comment #11 from Fedora End Of Life jkurik@fedoraproject.org --- This message is a reminder that Fedora 23 is nearing its end of life. Approximately 4 (four) weeks from now Fedora will stop maintaining and issuing updates for Fedora 23. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a Fedora 'version' of '23'.
Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version.
Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora 23 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior this bug is closed as described in the policy above.
Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete.
https://bugzilla.redhat.com/show_bug.cgi?id=1119711
Jens Petersen petersen@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Version|23 |rawhide
--- Comment #12 from Jens Petersen petersen@redhat.com --- Upstream bug is still open, and still happens for pandoc-1.19.1.
https://bugzilla.redhat.com/show_bug.cgi?id=1119711
--- Comment #14 from Fedora End Of Life jkurik@fedoraproject.org --- This message is a reminder that Fedora 26 is nearing its end of life. Approximately 4 (four) weeks from now Fedora will stop maintaining and issuing updates for Fedora 26. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a Fedora 'version' of '26'.
Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version.
Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora 26 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior this bug is closed as described in the policy above.
Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete.
https://bugzilla.redhat.com/show_bug.cgi?id=1119711
Fedora End Of Life jkurik@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |CLOSED Resolution|--- |EOL Last Closed|2014-07-16 07:03:03 |2018-05-29 07:49:48
--- Comment #15 from Fedora End Of Life jkurik@fedoraproject.org --- Fedora 26 changed to end-of-life (EOL) status on 2018-05-29. Fedora 26 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug.
If you can reproduce this bug against a currently maintained version of Fedora please feel free to reopen this bug against that version. If you are unable to reopen this bug, please file a new report against the current release. If you experience problems, please add a comment to this bug.
Thank you for reporting this bug and we are sorry it could not be fixed.
haskell-devel@lists.fedoraproject.org