Skip to content

Commit

Permalink
additional fix for empty pages in pdf exports #1804
Browse files Browse the repository at this point in the history
  • Loading branch information
hakimel committed Jan 24, 2017
1 parent 286b69b commit d9dcff1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion css/print/pdf.css
Expand Up @@ -132,7 +132,7 @@ ul, ol, div, p {
}

/* Slide backgrounds are placed inside of their slide when exporting to PDF */
.reveal section .slide-background {
.reveal .slide-background {
display: block !important;
position: absolute;
top: 0;
Expand Down
2 changes: 1 addition & 1 deletion js/reveal.js
Expand Up @@ -656,7 +656,7 @@
// Reduce total height by 1px so that the page ends before
// the page, otherwise the page's 'page-break-after' will
// land on the wrong page
page.style.height = ( ( pageHeight * numberOfPages ) - 1 ) + 'px';
page.style.height = ( ( pageHeight - 1 ) * numberOfPages ) + 'px';

slide.parentNode.insertBefore( page, slide );
page.appendChild( slide );
Expand Down

0 comments on commit d9dcff1

Please sign in to comment.