Files
pandoc/test/pptx-reader/lists.native
T
Nacho García f44a9c157b Pptx reader: read inherited bullets, numbering and nested lists. (#12042)
Only a bullet set on the paragraph itself (`buChar`) made a list item,
so text in a content placeholder, which inherits its bullets from the
slide master, read as plain paragraphs. Numbered paragraphs (`buAutoNum`)
did too, and paragraphs at deeper levels made separate lists rather than
nested ones. Lists written by the pptx writer, whose bullets are
inherited, came back without them.

A paragraph that doesn't set a bullet now takes the one it inherits:
from its shape's list style, then the matching placeholder on the slide
layout and on the slide master, then the master's text style for that
kind of placeholder. `buAutoNum` makes an ordered list, with its start
number, style and delimiter. Paragraphs at a deeper level than a list
item go inside that item, as a nested list or as further paragraphs. An
empty paragraph, on which PowerPoint shows no bullet, makes no item.

Speaker notes still only read bullets set on the paragraph.

The test fixtures were written with python-pptx 1.0.2 and with pandoc's
pptx writer.
2026-11-06 08:59:02 -08:00

22 lines
588 B
Plaintext

Pandoc
Meta { unMeta = fromList [] }
[ Header
2
( "slide-1" , [] , [] )
[ Str "Inherited" , Space , Str "bullets" ]
, BulletList
[ [ Plain [ Str "one" ] ]
, [ Plain [ Str "two" ]
, BulletList [ [ Plain [ Str "nested" ] ] ]
]
, [ Plain [ Str "three" ] ]
]
, Para [ Str "no" , Space , Str "bullet" ]
, Header
2 ( "slide-2" , [] , [] ) [ Str "Text" , Space , Str "box" ]
, Para [ Str "plain" ]
, OrderedList
( 3 , LowerAlpha , OneParen )
[ [ Plain [ Str "third" ] ] , [ Plain [ Str "fourth" ] ] ]
]