lib/relaton_iec/basic_block/image.rb in relaton-iec-1.18.1 vs lib/relaton_iec/basic_block/image.rb in relaton-iec-1.19.0

- old
+ new

@@ -11,15 +11,14 @@ @id = id @src = src @mimetype = mimetype @filename = args[:filename] if args[:width] && !args[:width].is_a?(Integer) && args[:width] != "auto" - warn "[basic-block] WARNING: Invalid image width attribute: \"#{args[:width]}" - warn "[basic-block] Image width should be integer or \"auto\"" + Util.warn "Invalid image width attribute: `#{args[:width]}`\nImage width should be integer or `auto`" end if args[:height] && !args[:height].is_a?(Integer) && args[:height] != "auto" - warn "[basic-block] WARNING: Invalid image height attribute: \"#{args[:height]}" - warn "[basic-block] Image height should be integer or \"auto\"" + Util.warn "Invalid image height attribute: `#{args[:height]}`\n" \ + "Image height should be integer or `auto`" end @width = args[:width] @height = args[:height] @alt = args[:alt] @title = args[:title]