From 934c2e9730d56dfea4e2c8e008840161c9099098 Mon Sep 17 00:00:00 2001 From: Hakim El Hattab Date: Tue, 24 Jan 2017 15:27:27 +0100 Subject: additional fix for empty pages in pdf exports #1804 --- js/reveal.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'js') diff --git a/js/reveal.js b/js/reveal.js index 66ed4d0..cf174bd 100644 --- a/js/reveal.js +++ b/js/reveal.js @@ -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 ); -- cgit v1.2.3