Skip to content

Commit

Permalink
Merge pull request #618 from kmuto/epubmaker-htmlext
Browse files Browse the repository at this point in the history
EPUBMaker::Producer: fix timing of making @params["cover"]
  • Loading branch information
takahashim committed Apr 29, 2016
2 parents 807fc46 + f500688 commit c3ae37a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/epubmaker/producer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,6 @@ def isbn_hyphen
def complement
@params["htmlext"] = "html" if @params["htmlext"].nil?
defaults = ReVIEW::Configure.new.merge({
"cover" => "#{@params["bookname"]}.#{@params["htmlext"]}",
"language" => "ja",
"date" => Time.now.strftime("%Y-%m-%d"),
"modified" => Time.now.strftime("%Y-%02m-%02dT%02H:%02M:%02SZ"),
Expand Down Expand Up @@ -291,6 +290,9 @@ def complement

@params["htmlversion"] = 5 if @params["epubversion"] >= 3

@params.maker = "epubmaker"
@params["cover"] = "#{@params["bookname"]}.#{@params["htmlext"]}" unless @params["cover"]

%w[bookname title].each do |k|
raise "Key #{k} must have a value. Abort." unless @params[k]
end
Expand Down

0 comments on commit c3ae37a

Please sign in to comment.