Skip to content

Commit

Permalink
allow page margin to be a single number; fixes regression introduced by
Browse files Browse the repository at this point in the history
  • Loading branch information
mojavelinux committed Mar 28, 2017
1 parent e0f97a9 commit 9272463
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/asciidoctor-pdf/converter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,8 @@ def build_pdf_options doc, theme
when ::Array
page_margin = page_margin[0..3] if page_margin.length > 4
page_margin = page_margin.map {|v| ::Numeric === v ? v : (str_to_pt v.to_s) }
when ::Numeric
page_margin = [page_margin]
else
page_margin = nil
end
Expand Down

0 comments on commit 9272463

Please sign in to comment.