Skip to content

Commit

Permalink
fix alignment for SVG image in running content
Browse files Browse the repository at this point in the history
  • Loading branch information
mojavelinux committed Oct 16, 2016
1 parent 629670a commit 60017b7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/asciidoctor-pdf/prawn_ext/images.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 60017b7

Please sign in to comment.