On 2026-02-02 10:51, Derek Chen-Becker wrote: > I've attached a working patch for ODT export that now only exports > styles for the defined priority range. I tested locally with both > alphabetic and numeric priorities.
Thanks, export generally works well on my end! I also tested with an external style file, and it merged them which I think is the expected behaviour: #+ODT_STYLES_FILE: "just-for-the-style.odt" There’s also an edge case supported by other exporters (ASCII, HTML, LaTeX), but their job is easier since all the priorities are styled in the same way. If you export a file that includes another with a different priority range: # main.org #+OPTIONS: pri:t #+PRIORITIES: 1 5 5 #+INCLUDE: included.org * TODO [#5] Task # included.org #+PRIORITIES: 6 10 6 * TODO [#6] Task or: # included.org #+PRIORITIES: A E C * TODO [#C] Task only the priority styles for the main file seem to be added. > Since this patch changes how the styles are generated, should I also > add an entry in ORG-NEWS? I guess it’s breaking in the sense that existing documents will look different when exported, even though that behaviour was wrong. Might be worth mentioning either way. -- Jacob S. Gordon [email protected] Please don’t send me HTML emails or MS Office/Apple iWork documents. https://useplaintext.email/#etiquette https://www.fsf.org/campaigns/opendocument
