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

Adding in ability to read merge cells from xls and xlsx files. #437

Merged
merged 1 commit into from
May 27, 2024

Conversation

magackame
Copy link

Closes #305 based on rebase of #307

@tafia
Copy link
Owner

tafia commented May 24, 2024

Thanks for the PR, I've made a few comments.

src/xls.rs Outdated Show resolved Hide resolved
src/xls.rs Outdated
@@ -141,7 +141,7 @@ pub struct XlsOptions {

/// A struct representing an old xls format file (CFB)
pub struct Xls<RS> {
sheets: BTreeMap<String, (Range<Data>, Range<String>)>,
sheets: BTreeMap<String, (Range<Data>, Range<String>, Vec<Dimensions>)>,
Copy link
Owner

Choose a reason for hiding this comment

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

At some point we will probably need to have some struct with property names.

Copy link
Author

@magackame magackame May 24, 2024

Choose a reason for hiding this comment

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

Is something like that satisfactory?

struct SheetData {
    range: Range<Data>,
    formula: Range<String>,
    merge_cells: Vec<Dimensions>,
}

src/xls.rs Outdated Show resolved Hide resolved
src/xls.rs Outdated Show resolved Hide resolved
src/xlsx/mod.rs Outdated Show resolved Hide resolved
src/xlsx/mod.rs Outdated Show resolved Hide resolved
src/xlsx/mod.rs Outdated Show resolved Hide resolved
src/xlsx/mod.rs Outdated Show resolved Hide resolved
src/xlsx/mod.rs Outdated Show resolved Hide resolved
tests/test.rs Outdated Show resolved Hide resolved
@tafia tafia merged commit 2ca8522 into tafia:master May 27, 2024
4 checks passed
@tafia
Copy link
Owner

tafia commented May 27, 2024

Thanks!

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.

Is there a way to extract merged cells?
3 participants