Skip to content

Commit 2887e3e

Browse files
committed
[revealjs] Prevent last page-break in print pdf mode
Adding a CSS rule shared in #3997
1 parent 9bd7889 commit 2887e3e

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎src/resources/formats/revealjs/quarto.scss‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -678,3 +678,9 @@ div.cell-output-display div.pagedtable-wrapper table.table {
678678
.reveal .scrollable ol li:first-child:nth-last-child(n + 10) ~ li {
679679
margin-left: 1em;
680680
}
681+
682+
// Patch to revealjs' pdf.scss to avoid last blank slide
683+
// https://github.com/quarto-dev/quarto-cli/issues/3997
684+
html.print-pdf .reveal .slides .pdf-page:last-child {
685+
page-break-after: avoid;
686+
}

0 commit comments

Comments
 (0)