X Tutup
Skip to content

Commit ebe4d60

Browse files
fix(honkit): Replace newlines with white space in pdf headers + footers (#237)
Co-authored-by: Steve Boissiere <sboissiere@meddbase.com>
1 parent 68a5117 commit ebe4d60

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/honkit/src/output/ebook/getPDFTemplate.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ function getPDFTemplate(output, type) {
3737
},
3838
});
3939
})
40+
.then((tplOut) => tplOut.replace(/\n/g, " ")) // PDF templates need to be on one line for inclusion in spawned command
4041
);
4142
}
4243

0 commit comments

Comments
 (0)
X Tutup