Skip to content

Commit

Permalink
Merge pull request #460 from kmuto/colophon_order
Browse files Browse the repository at this point in the history
EPUBMaker: reflected colophon_order
  • Loading branch information
takahashim committed Jan 19, 2016
2 parents 8323baa + bd8df7f commit 40e38d6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/epubmaker/epubcommon.rb
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ def colophon
end

@body << %Q[ <table class="colophon">\n]
@body << %w[aut csl trl dsr ill edt pbl prt pht].map{ |role|
@body << @producer.params["colophon_order"].map{ |role|
if @producer.params[role]
%Q[ <tr><th>#{@producer.res.v(role)}</th><td>#{CGI.escapeHTML(@producer.params[role].join(", "))}</td></tr>\n]
else
Expand Down
1 change: 1 addition & 0 deletions lib/epubmaker/producer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,7 @@ def complement
"originaltitlefile" => nil,
"profile" => nil,
"colophon" => nil,
"colophon_order" => %w[aut csl trl dsr ill edt pbl prt pht],
"epubmaker" => {
"flattoc" => nil,
"flattocindent" => true,
Expand Down

0 comments on commit 40e38d6

Please sign in to comment.