pdbook 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/pdbook.rb +1 -1
- data/lib/pdbook/converter.rb +3 -3
- metadata +1 -1
data/lib/pdbook.rb
CHANGED
data/lib/pdbook/converter.rb
CHANGED
@@ -15,9 +15,9 @@ module Pdbook
|
|
15
15
|
@font = font
|
16
16
|
@options = options
|
17
17
|
@options[:page_size] = ENV["page_size"] if ENV["page_size"]
|
18
|
-
@options[:margin] = ENV["margin"] if ENV["margin"]
|
19
|
-
@options[:font_size] = ENV["font_size"].
|
20
|
-
@options[:spacing] = ENV["spacing"].
|
18
|
+
@options[:margin] = (ENV["margin"].to_f * 1.in) if ENV["margin"]
|
19
|
+
@options[:font_size] = ENV["font_size"].to_f if ENV["font_size"]
|
20
|
+
@options[:spacing] = ENV["spacing"].to_f if ENV["spacing"]
|
21
21
|
|
22
22
|
@pdb = Palm::PDB.new(input)
|
23
23
|
@log = Logger.new($STDOUT)
|