[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
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 issue with print area defined name corrupting file #822

Merged

Conversation

donaldsonjulia
Copy link
Contributor
@donaldsonjulia donaldsonjulia commented May 18, 2019

PR includes:

  • Fix file corruption caused by printArea defined name. As described in issue below:
    Defined Names Break/Corrupt Excel File into Repair Mode #664

  • Lint updates required by prettier in committed files.

  • Handle formatting of reconciled printArea, printTitlesRow, and printTitlesColumn the same, so all are serialized as A:A (not $A:$A), in following with the documented format for specifying a sheet's printTitlesRow, etc. ( ws.pageSetup.printTitlesRow = 'A:B'; )

  • Update tests accordingly (per format changes above) and add test testPrintAreaOut.js

…per prettier. update test coverage and apply same format when reconciling printTitles and printArea
@donaldsonjulia
Copy link
Contributor Author

In my project I experienced the corruption as a result of adding a printArea to a sheet with a name with a space in it ("sheet title", for example). That is the main issue I observed that motivated this PR.

@donaldsonjulia
Copy link
Contributor Author

@Siemienik This PR precedes my PR for headerFooter, in order to separate concerns.

spec/.eslintrc Outdated Show resolved Hide resolved
@guyonroche
Copy link
Collaborator

@donaldsonjulia - Thank you for contributing :-) Are you sure this fixes issue #705 ? I thought that issue was about worksheet names

@donaldsonjulia donaldsonjulia force-pushed the fix/print-area-defined-names branch from 3747e31 to 3a9d6cb Compare May 21, 2019 18:27
@donaldsonjulia
Copy link
Contributor Author

@guyonroche You are correct about issue #705, sorry for the confusion! I removed it from the description. Late night PR summaries with too many tabs in my browser :)

@guyonroche guyonroche merged commit 89bd0ca into exceljs:master May 31, 2019
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.

2 participants