diff options
author | Jesse Luehrs <doy@tozt.net> | 2013-06-04 18:12:00 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2013-06-04 18:12:00 -0500 |
commit | 2350ee47eb2d19c6d74b052992f2f86ee5599ac6 (patch) | |
tree | 351a8937b712f708913636fc50af5bd8e85f56c1 /lib | |
parent | cefda390eec0084d973c00e491c41e440c3c01c9 (diff) | |
download | spreadsheet-parsexlsx-2350ee47eb2d19c6d74b052992f2f86ee5599ac6.tar.gz spreadsheet-parsexlsx-2350ee47eb2d19c6d74b052992f2f86ee5599ac6.zip |
support bold and italic
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Spreadsheet/ParseXLSX.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Spreadsheet/ParseXLSX.pm b/lib/Spreadsheet/ParseXLSX.pm index 2ede920..3e7a5c3 100644 --- a/lib/Spreadsheet/ParseXLSX.pm +++ b/lib/Spreadsheet/ParseXLSX.pm @@ -358,8 +358,8 @@ sub _parse_styles { # UnderlineStyle => $iUnderline, Name => $_->first_child('name')->att('val'), - # Bold => $bBold, - # Italic => $bItalic, + Bold => $_->has_child('b') ? 1 : 0, + Italic => $_->has_child('i') ? 1 : 0, # Underline => $bUnderline, # Strikeout => $bStrikeout, ) |