Changeset - 37b0434892e3
[Not reviewed]
0 1 0
Lance Edgar (lance) - 21 months ago 2023-01-07 22:44:41
lance@edbob.org
Prevent invalid chars in Excel sheet title
1 file changed with 1 insertions and 0 deletions:
0 comments (0 inline, 0 general)
rattail/excel.py
Show inline comments
 
@@ -205,6 +205,7 @@ class ExcelWriter(object):
 
        self.book = openpyxl.Workbook()
 
        self.sheet = self.book.active
 
        if sheet_title:
 
            sheet_title = sheet_title.replace('/', '-')
 
            self.sheet.title = sheet_title
 
        self.number_formats = number_formats
 
        self.highlight_rows = highlight_rows
0 comments (0 inline, 0 general)