Method: IsoDoc::WordFunction::Postprocess#word_section_breaks1
- Defined in:
- lib/isodoc/word_function/postprocess_cover.rb
#word_section_breaks1(docxml, sect) ⇒ Object
116 117 118 119 120 121 122 123 124 |
# File 'lib/isodoc/word_function/postprocess_cover.rb', line 116 def word_section_breaks1(docxml, sect) docxml.xpath("//div[@class = '#{sect}']//br[@orientation]").reverse .each_with_index do |br, i| @landscapestyle += "\ndiv.#{sect}_#{i} {page:#{sect}" \ "#{br['orientation'] == 'landscape' ? 'L' : 'P'};}\n" split_at_section_break(docxml, sect, br, i) end end |