Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
PDF Header and Footer not embedded because of line-breaks in template strings #1718
What is the current behavior?
The created PDF Header/Footer were not embedded!
What is the expected behavior?
The created header and footer should occur in the resulting PDF.
I could solve the problem by removing the line-breaks in the generated template strings.
'--pdf-header-template': headerTpl.replace(/(\r\n|\n|\r)/gm,""), '--pdf-footer-template': footerTpl.replace(/(\r\n|\n|\r)/gm,"")