|
|
@@ -193,10 +193,11 @@ func (c *Cell) formatToInt(format string) string {
|
|
|
|
|
|
// Return the formatted version of the value.
|
|
|
func (c *Cell) FormattedValue() string {
|
|
|
- if c.Type() == CellTypeString {
|
|
|
+ var numberFormat string = c.GetNumberFormat()
|
|
|
+ isText := numberFormat == "general" && numberFormat == "@"
|
|
|
+ if c.Type() == CellTypeString && isText {
|
|
|
return c.Value
|
|
|
}
|
|
|
- var numberFormat string = c.GetNumberFormat()
|
|
|
switch numberFormat {
|
|
|
case "general":
|
|
|
return c.Value
|