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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user