Skip to content

Commit

Permalink
ref asciidoctor#396 fix usage of image_attr_name var
Browse files Browse the repository at this point in the history
  • Loading branch information
slonopotamus committed Apr 18, 2021
1 parent fc6c16b commit 2c6263f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/asciidoctor-epub3/converter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1360,7 +1360,7 @@ def add_cover_page doc, name

image_attrs = {}
if (image_path.include? ':') && image_path =~ ImageMacroRx
logger.warn %(deprecated block macro syntax detected in :#{attr_name}: attribute) if image_path.start_with? 'image::'
logger.warn %(deprecated block macro syntax detected in :#{image_attr_name}: attribute) if image_path.start_with? 'image::'
image_path = %(#{imagesdir}#{$1})
(::Asciidoctor::AttributeList.new $2).parse_into image_attrs, %w(alt width height) unless $2.empty?
end
Expand Down

0 comments on commit 2c6263f

Please sign in to comment.