summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/Spreadsheet/Template/Generator/Parser/Excel.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Spreadsheet/Template/Generator/Parser/Excel.pm b/lib/Spreadsheet/Template/Generator/Parser/Excel.pm
index 80892a0..2c43b40 100644
--- a/lib/Spreadsheet/Template/Generator/Parser/Excel.pm
+++ b/lib/Spreadsheet/Template/Generator/Parser/Excel.pm
@@ -127,7 +127,9 @@ sub _parse_cell {
unless $format->{AlignV} == 2;
$format_data->{text_wrap} = JSON::true
if $format->{Wrap};
- # XXX num_format
+ my $wb = $self->excel;
+ $format_data->{num_format} = $wb->{FormatStr}{$format->{FmtIdx}}
+ unless $wb->{FormatStr}{$format->{FmtIdx}} eq 'GENERAL';
}
my $data = {