class Doc2Text::Odt::XmlNodes::Text::List

Public Instance Methods

fetch_style(elem_style) click to toggle source
# File lib/doc2text/odt/odt_xml_namespaces.rb, line 223
def fetch_style(elem_style)
  if elem_style
    elem_style.children.select { |style_property| style_property.xml_name == 'style:text-properties' }.each { |text_property|
      text_property.attrs.each { |attr|
        if attr.prefix == 'style'
          if attr.localname == 'list-level-style-number' && attr.value == 'Numbering_20_Symbols'
            @enclosing_style << '_'
          end
        end
      }
    }
  end
end
open() click to toggle source
# File lib/doc2text/odt/odt_xml_namespaces.rb, line 219
def open
  "\n"
end