summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorSamy Pesse <samypesse@gmail.com>2015-12-16 20:55:06 +0100
committerSamy Pesse <samypesse@gmail.com>2015-12-16 20:55:06 +0100
commit6969bb9a5c51aa5f24bb50356f4d11f058f481dc (patch)
tree17d8b537d47c783f3c67a71775f7b0f06001c1eb /lib
parent4567041456201eb4617a30ee8a3aae8993dd3568 (diff)
downloadgitbook-6969bb9a5c51aa5f24bb50356f4d11f058f481dc.zip
gitbook-6969bb9a5c51aa5f24bb50356f4d11f058f481dc.tar.gz
gitbook-6969bb9a5c51aa5f24bb50356f4d11f058f481dc.tar.bz2
Fix include of css in pdf header/footer
Diffstat (limited to 'lib')
-rw-r--r--lib/generators/ebook.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/generators/ebook.js b/lib/generators/ebook.js
index 6052003..ff804c6 100644
--- a/lib/generators/ebook.js
+++ b/lib/generators/ebook.js
@@ -63,7 +63,7 @@ Generator.prototype.getPDFTemplate = function(id) {
// Custom PDF style
if (this.styles.pdf) {
- stylesheets.push(fs.readFileSync(this.book.resolve(this.styles.pdf), { encoding: 'utf-8' }));
+ stylesheets.push(fs.readFileSync(this.book.resolveOutput(this.styles.pdf), { encoding: 'utf-8' }));
}
tpl = juice(tpl, {