From 2350ee47eb2d19c6d74b052992f2f86ee5599ac6 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Tue, 4 Jun 2013 18:12:00 -0500 Subject: support bold and italic --- lib/Spreadsheet/ParseXLSX.pm | 4 ++-- 1 file 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, ) -- cgit v1.2.3-54-g00ecf