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 the issue that cannot emit MergeCells and DataValidations together #785

Merged

Conversation

sfwn
Copy link
Contributor

@sfwn sfwn commented Oct 16, 2023

The bug is very simple:
if worksheet.MergeCells is not nil and xw.Write(mergeCells) executed, code returned incorrectly.
So, the logic of worksheet.DataValidations won't be executed even it's not nil.

@ghost
Copy link

ghost commented Oct 16, 2023

👇 Click on the image for a new way to code review

Review these changes using an interactive CodeSee Map

Legend

CodeSee Map legend

sfwn added a commit to sfwn/erda that referenced this pull request Oct 17, 2023
sfwn added a commit to erda-project/erda that referenced this pull request Oct 18, 2023
* pkg excel: support set sheet dataValidation for droplist

* polish cell style; add ut for mergeCells and dataValidations

* use forked xlsx library to fix xlsx issue: tealeg/xlsx#785

* issue excel export sheet with sheetHandlers, for dataValidation
Copy link
Owner

@tealeg tealeg left a comment

Choose a reason for hiding this comment

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

Great!

@tealeg tealeg merged commit 8086d9b into tealeg:master Oct 20, 2023
2 checks passed
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