diff --git a/lib/asciidoctor-epub3/converter.rb b/lib/asciidoctor-epub3/converter.rb index 7537dae..e92655a 100644 --- a/lib/asciidoctor-epub3/converter.rb +++ b/lib/asciidoctor-epub3/converter.rb @@ -852,12 +852,12 @@ def convert_colist(node) num = 1 lines << '' node.items.each_with_index do |item, i| - lines << '' - lines << %() - lines << %() - lines << '' - register_media_file node, "#{node.icon_uri "callouts/#{i + 1}"}", 'image' - num = num.next + lines << '' + lines << %() + lines << %() + lines << '' + register_media_file node, (node.icon_uri "callouts/#{i + 1}").to_s, 'image' + num = num.next end lines << '
#{num}#{item.text}#{item.blocks? ? LF + item.content : ''}
#{num}#{item.text}#{item.blocks? ? LF + item.content : ''}
' end