Skip to content

Commit

Permalink
Rake lint
Browse files Browse the repository at this point in the history
  • Loading branch information
someth2say committed Nov 19, 2024
1 parent 0694381 commit c8a6f74
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/asciidoctor-epub3/converter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -852,12 +852,12 @@ def convert_colist(node)
num = 1
lines << '<table class="callout-list">'
node.items.each_with_index do |item, i|
lines << '<tr>'
lines << %(<td class="conum"><img class="conum" src="#{node.icon_uri "callouts/#{num}"}" alt="#{num}"/></td>)
lines << %(<td>#{item.text}#{item.blocks? ? LF + item.content : ''}</td>)
lines << '</tr>'
register_media_file node, "#{node.icon_uri "callouts/#{i + 1}"}", 'image'
num = num.next
lines << '<tr>'
lines << %(<td class="conum"><img class="conum" src="#{node.icon_uri "callouts/#{num}"}" alt="#{num}"/></td>)
lines << %(<td>#{item.text}#{item.blocks? ? LF + item.content : ''}</td>)
lines << '</tr>'
register_media_file node, (node.icon_uri "callouts/#{i + 1}").to_s, 'image'
num = num.next
end
lines << '</table>'
end
Expand Down

0 comments on commit c8a6f74

Please sign in to comment.