summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2013-06-04 18:12:00 -0500
committerJesse Luehrs <doy@tozt.net>2013-06-04 18:12:00 -0500
commit2350ee47eb2d19c6d74b052992f2f86ee5599ac6 (patch)
tree351a8937b712f708913636fc50af5bd8e85f56c1
parentcefda390eec0084d973c00e491c41e440c3c01c9 (diff)
downloadspreadsheet-parsexlsx-2350ee47eb2d19c6d74b052992f2f86ee5599ac6.tar.gz
spreadsheet-parsexlsx-2350ee47eb2d19c6d74b052992f2f86ee5599ac6.zip
support bold and italic
-rw-r--r--lib/Spreadsheet/ParseXLSX.pm4
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,
)