-
-
Notifications
You must be signed in to change notification settings - Fork 587
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix "Invalid character / found in sheet title" during export to XLSX #490
Conversation
Codecov Report
@@ Coverage Diff @@
## master #490 +/- ##
==========================================
+ Coverage 90.67% 90.69% +0.02%
==========================================
Files 28 28
Lines 2616 2623 +7
==========================================
+ Hits 2372 2379 +7
Misses 244 244
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please include a small description in the commit first line, after the issue number?
src/tablib/formats/_xlsx.py
Outdated
@@ -52,6 +67,8 @@ def export_book(cls, databook, freeze_panes=True): | |||
ws = wb.create_sheet() | |||
ws.title = dset.title if dset.title else 'Sheet%s' % (i) | |||
|
|||
# | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess those two lines should not be in the patch.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated, thanks
I am not sure if I understand, what you mean. Do you want me to change the commit message? Is this even possible? If it is, I have no idea how can I do that. I could re-write everything (as this is a very small update) and re-commit with a better message, but is that what you want from me? Please explain. I am willing to work with you on this patch but I am not sure if I understood correctly. |
Exactly, I'd like a small description of the change in the commit message. You can do that by: |
Oh sorry, now I realize that you have several commits already. So you should use some rebase magic to do that.
|
I did rebase and a force-push. Does it look okay for you? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perfect, thanks a lot!
… correct tests Fixes jazzband#489 Related to jazzband#490
Fixes #489.
Make sure there are no bad characters in sheet names!