From 7d63b636de7f41878770e57f2917cf10448686a9 Mon Sep 17 00:00:00 2001 From: guoqiang Date: Sun, 22 Dec 2024 22:05:03 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=A2=9E=E5=8A=A0Run=20Spacing?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apirun.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/apirun.go b/apirun.go index e5d5128..7c17ba6 100644 --- a/apirun.go +++ b/apirun.go @@ -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{}