+4
-1
@@ -138,7 +138,10 @@ func (src *Path) EncodeText(ci *ConnInfo, buf []byte) ([]byte, error) {
|
||||
if i > 0 {
|
||||
buf = append(buf, ',')
|
||||
}
|
||||
buf = append(buf, fmt.Sprintf(`(%f,%f)`, p.X, p.Y)...)
|
||||
buf = append(buf, fmt.Sprintf(`(%s,%s)`,
|
||||
strconv.FormatFloat(p.X, 'f', -1, 64),
|
||||
strconv.FormatFloat(p.Y, 'f', -1, 64),
|
||||
)...)
|
||||
}
|
||||
|
||||
return append(buf, endByte), nil
|
||||
|
||||
Reference in New Issue
Block a user