-
Notifications
You must be signed in to change notification settings - Fork 437
Read cell comments in .xlsx files #58
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
Read cell comments in .xlsx files #58
Conversation
Works for the single file I've tried it on, for what that's worth. Could
do with a bit more testing.
Fixes python-excel/xlrd#37
…o feature-cell-comments-in-xlsx
This has test cases for .xlsx files generated by both Excel 2007 and Google Docs, and works for 't' elements nested directly under 'text' or with an intervening 'r' element. It also copes with the (common) Excel case where there are multiple 't' elements: this occurs when a comment has an emboldened author name
Your diagnosis of the 2.6 problem appears to be correct. One thing to fix: With the Excel UI it is quite possible to create a comment which contains no text. This is pointless but still valid. Please drop the warning, and create a Note object with text = a zero-length string i.e. not None. |
Good catch - thanks. I don't have access to a copy of Excel at present, but I'll add another test with code to deal with that case tomorrow. |
I've tested this patch with price files from Bitrix CMS and it seems OK for me. My environment is Mac OS X, Python 3.3.3 |
@stephenlewis - still waiting for you test to deal with the case @sjmachin raises... |
Read cell comments in .xlsx files
This builds on the work done in #38.
It adds tests for parsing comments out of .xlsx files generated by Excel 2007 and Google Docs, and copes correctly with the two different comment structures identified in the previous pull request.