Files
Notare/lib/notare/nodes/paragraph.rb
mathias234 f3e566364f
All checks were successful
CI Pipeline / build (push) Successful in 47s
Implement spacing before/after for paragraphs
2026-04-09 14:46:33 +02:00

22 lines
461 B
Ruby

# frozen_string_literal: true
module Notare
module Nodes
class Paragraph < Base
attr_reader :runs, :style, :spacing_before, :spacing_after
def initialize(runs = [], style: nil, spacing_before: nil, spacing_after: nil)
super()
@runs = runs
@style = style
@spacing_before = spacing_before
@spacing_after = spacing_after
end
def add_run(run)
@runs << run
end
end
end
end