Skip to content

Commit a9fdcc5

Browse files
l0g1nguoqiang
andauthored
feat: 增加Run Spacing (#47)
Co-authored-by: guoqiang <guoqiang@antiy.cn>
1 parent 7d16797 commit a9fdcc5

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

apirun.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,14 @@ func (r *Run) Shade(val, color, fill string) *Run {
4646
return r
4747
}
4848

49+
// Spacing allows to set run spacing
50+
func (r *Run) Spacing(line int) *Run {
51+
r.RunProperties.Spacing = &Spacing{
52+
Line: line,
53+
}
54+
return r
55+
}
56+
4957
// Bold ...
5058
func (r *Run) Bold() *Run {
5159
r.RunProperties.Bold = &Bold{}

0 commit comments

Comments
 (0)