Sha256: d75b0d4bfd1795e8c9ebfdb7b533a049a0e95a8576584dc874986f89409905f9

Contents?: true

Size: 277 Bytes

Versions: 6

Compression:

Stored size: 277 Bytes

Contents

module RRTF
  # This class represents a paragraph within an RTF document.
  class ParagraphNode < CommandNode
    def initialize(parent, style=nil)
      prefix = '\pard'
      prefix << style.prefix(parent.root) if style

      super(parent, prefix, '\par')
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rrtf-1.3.1 lib/rrtf/node/paragraph_node.rb
rrtf-1.3.0 lib/rrtf/node/paragraph_node.rb
rrtf-1.2.0 lib/rrtf/node/paragraph_node.rb
rrtf-1.1.0 lib/rrtf/node/paragraph_node.rb
rrtf-1.0.1 lib/rrtf/node/paragraph_node.rb
rrtf-1.0.0 lib/rrtf/node/paragraph_node.rb