Class: Sablon::HTMLConverter::ListParagraph
- Defined in:
- lib/sablon/html/ast.rb
Overview
Sets list item specific attributes registered on the node to properly generate a list paragraph
Constant Summary
Constants inherited from Paragraph
Paragraph::CHILD_TAGS, Paragraph::PROPERTIES
Constants inherited from Node
Instance Attribute Summary
Attributes inherited from Paragraph
Instance Method Summary collapse
-
#initialize(env, node, properties) ⇒ ListParagraph
constructor
A new instance of ListParagraph.
Methods inherited from Paragraph
Methods inherited from Node
#accept, convert_style_property, node_name, process_properties, style_conversion, #to_docx
Constructor Details
#initialize(env, node, properties) ⇒ ListParagraph
Returns a new instance of ListParagraph.
273 274 275 276 277 278 279 280 |
# File 'lib/sablon/html/ast.rb', line 273 def initialize(env, node, properties) list_props = { pStyle: node['pStyle'], numPr: [{ ilvl: node['ilvl'] }, { numId: node['numId'] }] } properties = properties.merge(list_props) super end |