Skip to content

Commit fd30d27

Browse files
committed
tests: pin pptx layout for bullets, table, bullets on one slide
Pandoc 3.10.1 fixed slide splitting in the pptx writer (jgm/pandoc#11433): a slide holding a bullet list, a table, then another bullet list used to be split across several slides and now stays on one "Title and Content" slide. Quarto had no pptx test containing a table, so the change was unpinned. This is a characterization test of the 3.13 output: it passes with Pandoc 3.13 and fails with Pandoc 3.10 (three slides instead of two).
1 parent 13e443d commit fd30d27

1 file changed

Lines changed: 36 additions & 0 deletions

File tree

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
---
2+
title: Bullets, table, bullets
3+
format: pptx
4+
_quarto:
5+
tests:
6+
pptx:
7+
ensurePptxMaxSlides:
8+
- 2
9+
ensurePptxLayout:
10+
-
11+
- 2
12+
- "Title and Content"
13+
ensurePptxRegexMatches:
14+
- ['<a:t>before two</a:t>[\s\S]*<a:tbl>[\s\S]*<a:t>after one</a:t>']
15+
- 2
16+
---
17+
18+
<!--
19+
Characterization test for the Pandoc 3.10.1 slide splitting change
20+
(jgm/pandoc#11433): a slide holding a bullet list, a table, then another
21+
bullet list stays on a single "Title and Content" slide. Pandoc 3.10 put the
22+
first list and the table on one slide and moved the trailing list to the next.
23+
The title slide is slide 1, so the content slide is slide 2.
24+
-->
25+
26+
## Slide
27+
28+
- before one
29+
- before two
30+
31+
| a | b |
32+
|---|---|
33+
| 1 | 2 |
34+
35+
- after one
36+
- after two

0 commit comments

Comments
 (0)