-
-
Notifications
You must be signed in to change notification settings - Fork 135
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: losing all headers after a broken line #151
Conversation
Codecov Report
@@ Coverage Diff @@
## master #151 +/- ##
==========================================
+ Coverage 97.24% 97.26% +0.01%
==========================================
Files 1 1
Lines 145 146 +1
==========================================
+ Hits 141 142 +1
Misses 4 4
Continue to review full report at Codecov.
|
In an older version of this parser the logic for broken rows did not have any impact on the header mapping. What was the reason to change the behaviour to switch to indexed object if a line is broken? |
@aheissenberger that was likely a regression or untested side-effect when the indexed headers were added due to incomplete tests or poor coverage. |
@shellscape using indexed props for columns with wrong amount of columns broke my code which was based on an older version of css-parser. I changed the code to be more consistent and the headers are now always set except for the case of more columns - here I will use the index for columns with no existing header. |
We've encountered the same problem and can confirm that this PR (as it is now) will fix the problem. Currently we're back on |
@mafintosh When can this be released? |
@shellscape @mafintosh would love to see this fix merged and published |
I won't have time to address any issues or PRs for this project until mid to late January, unfortunately. |
Hi, don't want to be seen as unpolite, but can you merge this PR? It's already February. I understand that you may have other important things on your table, but this problem affects my project, so I hope it can be fixed soon. |
@shellscape if you feel comfortable with the idea, I volunteer for helping you out with this project. I care very much about this project and want it to remain both healthy, in good shape and code-quality. |
@MalxMalx that's why it's open source. please use the fork this PR was based on. @SimonSimCity not up to me unfortunately |
Also looking to have this merged. Updated this dependency and this bug makes it unusable for me currently. Downgrading to 2.3.0 where it was originally working for the time being. @shellscape @SimonSimCity would love to help you get this merged if possible |
I'm also waiting for this to be merged, anything I can do to help? |
This PR contains:
Breaking Changes?
If yes, please describe the breakage.
when amount of columns of cell not equal to amount of headers the object returned is using indexed keys instead of the headers.
old version did only replace headers with index keys when there where more columns. When there where less columns the headers where still used.
Please Describe Your Changes
Problem #150
this.headers
with indexed header when one line was broken