Class: Doc2Text::Odt::XmlNodes::Text::ListItem
- Inherits:
-
Object
- Object
- Doc2Text::Odt::XmlNodes::Text::ListItem
- Includes:
- Node, Doc2Text::Odt::XmlNodes::Text
- Defined in:
- lib/doc2text/odt_xml_namespaces.rb
Overview
docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-part1.html#__RefHeading__1415154_253892949
Instance Attribute Summary
Attributes included from Node
#attrs, #children, #name, #parent, #prefix, #text
Instance Method Summary collapse
Methods included from Doc2Text::Odt::XmlNodes::Text
#fetch_style, #find_style, #initialize
Methods included from Node
#close, create_node, #delete, #eql?, #generic?, #has_text?, included, #initialize, #not_deleted?, #not_enclosing?, #open, #root?, titleize, #to_s, #un_delete, #xml_name
Instance Method Details
#delete_on_close? ⇒ Boolean
209 210 211 |
# File 'lib/doc2text/odt_xml_namespaces.rb', line 209 def delete_on_close? false end |
#expand ⇒ Object
199 200 201 202 203 |
# File 'lib/doc2text/odt_xml_namespaces.rb', line 199 def result = "* #{@children.select(&:not_deleted?).map(&:expand).join.strip.gsub /\n{2,}/, "\n"}\n" delete result.clone end |
#fetch_style? ⇒ Boolean
205 206 207 |
# File 'lib/doc2text/odt_xml_namespaces.rb', line 205 def fetch_style? false end |