From 60017b76c223e2cbc1992d98045d114ea018d737 Mon Sep 17 00:00:00 2001 From: Dan Allen Date: Fri, 14 Oct 2016 20:56:59 -0600 Subject: [PATCH] fix alignment for SVG image in running content --- lib/asciidoctor-pdf/prawn_ext/images.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/asciidoctor-pdf/prawn_ext/images.rb b/lib/asciidoctor-pdf/prawn_ext/images.rb index 12cfd1a2b..380a05187 100644 --- a/lib/asciidoctor-pdf/prawn_ext/images.rb +++ b/lib/asciidoctor-pdf/prawn_ext/images.rb @@ -11,7 +11,8 @@ def extended base def image file, opts = {} # FIXME handle case when SVG is a File or IO object if ::String === file && (file.downcase.end_with? '.svg') - opts[:at] ||= bounds.top_left + opts[:position] ||= :left + opts[:vposition] ||= cursor opts[:fallback_font_name] ||= default_svg_font if respond_to? :default_svg_font svg (::IO.read file), opts else