1
0
mirror of https://github.com/fumiama/go-docx.git synced 2026-06-06 00:00:24 +08:00

feat: 增加Run Spacing (#47)

Co-authored-by: guoqiang <guoqiang@antiy.cn>
This commit is contained in:
Rodrigo Stewart
2024-12-25 21:35:38 +08:00
committed by GitHub
parent 7d167974e5
commit a9fdcc5790

View File

@@ -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{}