lib/asciidoctor/inline.rb in asciidoctor-2.0.8 vs lib/asciidoctor/inline.rb in asciidoctor-2.0.9
- old
+ new
@@ -37,10 +37,10 @@
# Public: Returns the converted alt text for this inline image.
#
# Returns the [String] value of the alt attribute.
def alt
- attr 'alt'
+ (attr 'alt') || ''
end
# For a reference node (:ref or :bibref), the text is the reftext (and the reftext attribute is not set).
#
# (see AbstractNode#reftext?)