Skip to content

Fix-up #17720 for sheets containing comma#17754

Merged
seanbudd merged 1 commit into
nvaccess:masterfrom
CyrilleB79:fix17720
Mar 3, 2025
Merged

Fix-up #17720 for sheets containing comma#17754
seanbudd merged 1 commit into
nvaccess:masterfrom
CyrilleB79:fix17720

Conversation

@CyrilleB79

Copy link
Copy Markdown
Contributor

Link to issue number:

Fix-up of #17720

Summary of the issue:

#17720 fixed Excel element list dialog on non-English system, using the local list separator to request a range. Though, the way it was implemented could fail in case the Excel file or sheet names also contained a comma.

Description of user facing changes

Listing comments or formulas in Excel no longer fails when the name of the file or the sheet contains a comma.

Description of development approach

  • Split the range string on the last "!" character to isolate the cells range from the file/sheet names.
  • Replace the separator only in the cells range part.

Testing strategy:

Tested with names containing special characters used in range definition, i.e. with a file named "Test,$!foo!$,bar.xlsx" and in a sheet named "Sheet.- ,;$!foo".

Known issues with pull request:

None

Code Review Checklist:

  • Documentation:
    • Change log entry
    • User Documentation
    • Developer / Technical Documentation
    • Context sensitive help for GUI changes
  • Testing:
    • Unit tests
    • System (end to end) tests
    • Manual testing
  • UX of all users considered:
    • Speech
    • Braille
    • Low Vision
    • Different web browsers
    • Localization in other languages / culture than English
  • API is compatible with existing add-ons.
  • Security precautions taken.

@coderabbitai summary

@CyrilleB79 CyrilleB79 marked this pull request as ready for review February 28, 2025 11:34
@CyrilleB79 CyrilleB79 requested a review from a team as a code owner February 28, 2025 11:34
@CyrilleB79 CyrilleB79 requested a review from seanbudd February 28, 2025 11:34
@CyrilleB79

Copy link
Copy Markdown
Contributor Author

Cc @michaelDCurran if you also wish to review this.
And thanks again.

@michaelDCurran michaelDCurran left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks okay. Noting though that if this function were called with a relative address (no file/sheet) then it would return the address as the file/sheet and an empty address. We are not calling it like this so it is okay. But just pointing that out.

@seanbudd seanbudd merged commit 90a3c8d into nvaccess:master Mar 3, 2025
@github-actions github-actions Bot added this to the 2025.1 milestone Mar 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants