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

Implement spreadsheet dump #398

Merged
merged 1 commit into from
Nov 5, 2024
Merged

Conversation

rokostik
Copy link
Contributor

@rokostik rokostik commented Nov 5, 2024

This PR implements dumping spreadsheets.

All values are converted to rye values (as is the case with List).

Comment on lines +336 to +339
// Fill in missing columns (if they exist) with void (_)
for i := len(row.Values); i < len(s.Cols); i++ {
sb.WriteString(" _")
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm not sure if there can be a case where there are less row values than columns. From what I've looked at this can't happen but added it just in case. If it can never happen this can be removed.

Copy link
Owner

Choose a reason for hiding this comment

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

Good call ... better safe than having possible runtime errors later I think.

@refaktor refaktor merged commit 2c47408 into refaktor:main Nov 5, 2024
7 checks passed
@refaktor
Copy link
Owner

refaktor commented Nov 5, 2024

Uh, great! This will get handy real soon.

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