Files
pandoc/test
John MacFarlaneandClaude 008afcaba1 OpenDocument writer: reuse identical automatic paragraph styles.
Every blockquote, every explicitly aligned table cell, and every
direction-adjusted style got a fresh `Pn` automatic style, even when
an identical one already existed. A document with many of them paid
for a style definition each time, and the style list that gets walked
when emitting `office:automatic-styles` grew with it.

Key the styles on their attributes and paragraph properties and reuse
a match. The direction cache added for RTL support is subsumed by
this one and goes away.

The test output changes only by dropping duplicate definitions:
`writer.opendocument` had three identical `Quotations` styles and
6792.md two identical centred table-cell styles.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-10-01 05:18:49 +00:00
..
…
…
…
…
…
…
2026-07-12 12:50:54 +02:00
2026-08-16 16:25:00 -07:00
2026-07-12 12:50:54 +02:00