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

Cells with multiple line breaks in a row #61

Closed
done712 opened this issue Aug 12, 2020 · 3 comments
Closed

Cells with multiple line breaks in a row #61

done712 opened this issue Aug 12, 2020 · 3 comments
Assignees
Labels

Comments

@done712
Copy link

done712 commented Aug 12, 2020

Package cannot handle cells with formulas that include multiple line breaks in a row, i.e. in my excel file there is a cell with the following content:

=IF(

A1=1;

1;

2 )

The error that is raised is:

formulas.errors.FormulaError: ('Not a valid formula:\n%s', '=IF(\n\nA1=1,\n\n1,\n\n2)')

@vinci1it2000
Copy link
Owner

Done!

@vinci1it2000 vinci1it2000 self-assigned this Aug 15, 2020
@vinci1it2000 vinci1it2000 added this to the Filicudi release milestone Aug 15, 2020
@done712
Copy link
Author

done712 commented Aug 18, 2020

Just had a short look at your code change - what if I have a formula like this: ="\n" & SUM(3,4)
Wouldn't the \n (=string) also be replaced (which would not be the desired outcome)? Then again I don't know the structure of your package well enough.

@vinci1it2000
Copy link
Owner

This is not an issue because \n is a special character. The formula ="\n" & SUM(3,4) is seeing by python as "\\n" & SUM(3,4).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants