From 2c6263f09b5d6e2f8cabbd41f8fe4bfc73f9f163 Mon Sep 17 00:00:00 2001 From: Marat Radchenko Date: Sun, 18 Apr 2021 22:20:01 +0300 Subject: [PATCH] ref #396 fix usage of image_attr_name var --- lib/asciidoctor-epub3/converter.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/asciidoctor-epub3/converter.rb b/lib/asciidoctor-epub3/converter.rb index 5ffdaf5..4ab339b 100644 --- a/lib/asciidoctor-epub3/converter.rb +++ b/lib/asciidoctor-epub3/converter.rb @@ -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