Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion xls2xlsx/xls2xlsx.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,10 @@ def xls_style_to_xlsx(self, xf_ndx):

try: # Avoidance for issue #11 (though I cannot duplicate the problem w/o the input file)
xls_font = self.book.font_list[xf.font_index] # Font object
font.b = xls_font.bold
if (xls_font.bold or xls_font.weight == 700): # 700 is equal to bold according to https://xlrd.readthedocs.io/en/latest/api.html
font.b = True
else:
font.b = False
font.i = xls_font.italic
if xls_font.character_set:
font.charset = xls_font.character_set
Expand Down