From c61673e35aa56624471bffb0b91767b3d54cbbde Mon Sep 17 00:00:00 2001 From: takahashim Date: Sun, 28 Jun 2015 19:05:35 +0900 Subject: [PATCH] EPUBMaker: support new param "direction" in config.yml to define page-progression-direction in EPUB3 --- lib/epubmaker/epubv3.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/epubmaker/epubv3.rb b/lib/epubmaker/epubv3.rb index 8455f1717..920c3932a 100644 --- a/lib/epubmaker/epubv3.rb +++ b/lib/epubmaker/epubv3.rb @@ -155,7 +155,11 @@ def opf_tocx end s = "" - s << %Q[ \n] + if @producer.params["direction"] + s << %Q[ \n] + else + s << %Q[ \n] + end s << %Q[ \n] s << %Q[ \n] if @producer.params["toc"]