Skip to content

Commit

Permalink
feat: 增加Run Spacing (#47)
Browse files Browse the repository at this point in the history
Co-authored-by: guoqiang <[email protected]>
  • Loading branch information
l0g1n and guoqiang authored Dec 25, 2024
1 parent 7d16797 commit a9fdcc5
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions apirun.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,14 @@ func (r *Run) Shade(val, color, fill string) *Run {
return r
}

// Spacing allows to set run spacing
func (r *Run) Spacing(line int) *Run {
r.RunProperties.Spacing = &Spacing{
Line: line,
}
return r
}

// Bold ...
func (r *Run) Bold() *Run {
r.RunProperties.Bold = &Bold{}
Expand Down

0 comments on commit a9fdcc5

Please sign in to comment.