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

fix #9: float point parse value

This commit is contained in:
源文雨
2023-07-10 14:36:09 +08:00
parent 1a682f16d9
commit 9f3162a90f
10 changed files with 162 additions and 199 deletions

View File

@@ -24,7 +24,6 @@ import (
"encoding/xml"
"io"
"reflect"
"strconv"
"strings"
)
@@ -78,7 +77,7 @@ func (t *Tab) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
if attr.Value == "" {
continue
}
t.Position, err = strconv.Atoi(attr.Value)
t.Position, err = GetInt(attr.Value)
if err != nil {
return err
}