Skip to content

Commit

Permalink
refactor: item -> role
Browse files Browse the repository at this point in the history
  • Loading branch information
takahashim committed Aug 4, 2015
1 parent 9e06184 commit fed17a2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/epubmaker/epubcommon.rb
Original file line number Diff line number Diff line change
Expand Up @@ -236,9 +236,9 @@ def colophon
end

@body << %Q[ <table class="colophon">\n]
@body << %w[aut csl trl dsr ill edt pbl prt pht].map{ |item|
if @producer.params[item]
%Q[ <tr><th>#{@producer.res.v(item)}</th><td>#{CGI.escapeHTML(@producer.params[item].join(", "))}</td></tr>\n]
@body << %w[aut csl trl dsr ill edt pbl prt pht].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
""
end
Expand Down

0 comments on commit fed17a2

Please sign in to comment.