Skip to content
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: swap '_' for leading or trailing apostrophes in worksheet names #326

Merged
merged 1 commit into from
Jan 11, 2025

Conversation

p2edwards
Copy link
Contributor

📖 Description

Fixes "export failed" when trying to export forms whose name starts or ends with an apostrophe

💭 Notes

Make xls worksheet names more Excel-compatible, by replacing leading or trailing apostrophes with underscores.

Add tests for similar modifications we already do:

Fixes an export failing in kpi.

Internal discussion: "Apostrophe at the end of the title breaks data downloading."

- make xls exports more excel-compatible
- fix failing export when form names start or end with apostrophe
@p2edwards p2edwards self-assigned this Jan 11, 2025
@p2edwards p2edwards requested a review from jnm January 11, 2025 00:36
@coveralls
Copy link

Coverage Status

coverage: 86.669% (+0.005%) from 86.664%
when pulling 0da4d7b on fix-apostrophes-in-xls-sheet-names
into 451df4c on main.

@jnm jnm merged commit e37b593 into main Jan 11, 2025
3 checks passed
@jnm jnm deleted the fix-apostrophes-in-xls-sheet-names branch January 11, 2025 00:41
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