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

fix: unmarshal RunProperties

This commit is contained in:
源文雨
2023-02-10 13:52:11 +08:00
parent 9aae5582ad
commit 9a504d59dc
10 changed files with 233 additions and 158 deletions

View File

@@ -10,9 +10,9 @@ func (r *Run) Color(color string) *Run {
}
// Size allows to set run size
func (r *Run) Size(size int) *Run {
func (r *Run) Size(size string) *Run {
r.RunProperties.Size = &Size{
Val: size * 2,
Val: size,
}
return r