Skip to content

Commit 9e14ef5

Browse files
manishbhatt94marcbachmann
authored andcommitted
Fix issue with last header appearing on all pages
1 parent 89a41e3 commit 9e14ef5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/scripts/pdf_a4_portrait.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ function createSection (section, content, options) {
181181
var numPagesFinal = numPages + paginationOffset
182182

183183
if (pageNumFinal === 1 && !html) html = o.first || c.first
184-
if (numPagesFinal === numPages && !html) html = o.last || c.last
184+
if (pageNumFinal === numPages && !html) html = o.last || c.last
185185
return (html || o.default || c.default || '')
186186
.replace(/{{page}}/g, pageNumFinal)
187187
.replace(/{{pages}}/g, numPagesFinal) + content.styles

0 commit comments

Comments
 (0)