class Doc2Text::Odt::XmlNodes::Text::P

docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-part1.html#__RefHeading__1419256_253892949

Public Class Methods

new(parent = nil, attrs = [], prefix = nil, name = nil, markdown_odt_parser = nil) click to toggle source
Calls superclass method Doc2Text::Odt::XmlNodes::Text::new
# File lib/doc2text/odt/odt_xml_namespaces.rb, line 155
def initialize(parent = nil, attrs = [], prefix = nil, name = nil, markdown_odt_parser = nil)
  super parent, attrs, prefix, name, markdown_odt_parser
end
style_family() click to toggle source
# File lib/doc2text/odt/odt_xml_namespaces.rb, line 159
def self.style_family
  'paragraph'
end

Public Instance Methods

close() click to toggle source
# File lib/doc2text/odt/odt_xml_namespaces.rb, line 167
def close
  "#{@enclosing_style.reverse.join}\n"
end
open() click to toggle source
# File lib/doc2text/odt/odt_xml_namespaces.rb, line 163
def open
  "\n#{@enclosing_style.join}"
end