lib/caracal/renderers/document_renderer.rb in caracal-1.0.2 vs lib/caracal/renderers/document_renderer.rb in caracal-1.0.3
- old
+ new
@@ -203,10 +203,16 @@
end
end
end
def render_pagebreak(xml, model)
- xml.send 'w:p', paragraph_options do
+ if model.page_break_wrap
+ xml.send 'w:p', paragraph_options do
+ xml.send 'w:r', run_options do
+ xml.send 'w:br', { 'w:type' => 'page' }
+ end
+ end
+ else
xml.send 'w:r', run_options do
xml.send 'w:br', { 'w:type' => 'page' }
end
end
end