Implement spacing before/after for paragraphs
All checks were successful
CI Pipeline / build (push) Successful in 47s
All checks were successful
CI Pipeline / build (push) Successful in 47s
This commit is contained in:
@@ -3,12 +3,14 @@
|
||||
module Notare
|
||||
module Nodes
|
||||
class Paragraph < Base
|
||||
attr_reader :runs, :style
|
||||
attr_reader :runs, :style, :spacing_before, :spacing_after
|
||||
|
||||
def initialize(runs = [], style: nil)
|
||||
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)
|
||||
|
||||
Reference in New Issue
Block a user