Open danse opened 6 years ago
I suspect this would be an easy change; just search for "Source_Text" in the code...
yes it's easy to add more styles. I'm also looking for a way to convert code paragraphs, currently it doesn't work. Hopefully i will close this issue fixing both problems
I am working at a version which takes your comments into account, on the 4841-4
branch on italia/pandoc. Anyway i won't have much time to work on that so i am going to merge the existing solution from branch 4841
in our fork. Just notifying here for other folks who might stumble on the same problem in the future
In order to detect code formatting in an ODT document, pandoc currently recognises the
Source_Text
value for thestyle-name
attribute, but this is not the value used by the styles i have available with Libreoffice 5. I can use Preformatted Text for paragraphs and Source Text among the "character styles" that is inlines. They get encoded asPreformatted_20_Text
andSource_20_Text
values for the style names.Paragraphs aren't converted to code blocks even when they have the expected style, so there is no way to write a code snippet with meaningful indentation in ODT and convert it with pandoc