lib/prawn/document.rb in prawn-1.3.0 vs lib/prawn/document.rb in prawn-2.0.0

- old
+ new

@@ -64,11 +64,11 @@ # NOTE: We probably need to rethink the options validation system, but this # constant temporarily allows for extensions to modify the list. VALID_OPTIONS = [:page_size, :page_layout, :margin, :left_margin, :right_margin, :top_margin, :bottom_margin, :skip_page_creation, - :compress, :skip_encoding, :background, :info, + :compress, :background, :info, :text_formatter, :print_scaling] # Any module added to this array will be included into instances of # Prawn::Document at the per-object level. These will also be inherited by # any subclasses. @@ -241,10 +241,10 @@ # def start_new_page(options = {}) if last_page = state.page last_page_size = last_page.size last_page_layout = last_page.layout - last_page_margins = last_page.margins + last_page_margins = last_page.margins.dup end page_options = {:size => options[:size] || last_page_size, :layout => options[:layout] || last_page_layout, :margins => last_page_margins}