lib/rabbit/theme/default-preformatted/default-preformatted.rb in rabbit-0.6.2 vs lib/rabbit/theme/default-preformatted/default-preformatted.rb in rabbit-0.6.3
- old
+ new
@@ -6,10 +6,14 @@
@preformatted_padding_left ||= screen_x(5)
@preformatted_padding_right ||= screen_x(5)
@preformatted_padding_top ||= screen_y(2)
@preformatted_padding_bottom ||= screen_y(2)
+if @preformatted_keep_in_size.nil?
+ @preformatted_keep_in_size = true
+end
+
match("**", PreformattedBlock) do |blocks|
name = "preformatted-block"
blocks.horizontal_centering = true
@@ -29,9 +33,9 @@
blocks.wrap_mode = false
blocks.margin_top = @space
blocks.margin_bottom = @space
- blocks.keep_in_size
+ blocks.keep_in_size if @preformatted_keep_in_size
draw_frame(blocks, params)
end