Closed bdolnik closed 4 years ago
You should have a look at the rewrite
branch. It is a complete re-write and has better colspan
and rowspan
handling. The only reason it hasn't been released yet is because I was hoping to add more features in terms of events and hooks - but at this rate I should probably go ahead and release it.
Actually - I think I misunderstood your request. After re-reading your question, it looks like the code is working how it is supposed to - but that you want to turn off colspan
support.
H1 | H2 | H3 |
---|---|---|
R1C1 | R1C2 | R1C3 |
R2C1 | R2C1 (spanned) | R2C3 |
[
{
"H1": "R1C1",
"H2": "R1C2",
"H3": "R1C3"
}, {
"H1": "R2C1",
"H2": "R2C1",
"H3": "R2C3"
}
]
[
{
"H1": "R1C1",
"H2": "R1C2",
"H3": "R1C3"
}, {
"H1": "R2C1",
"H2": null,
"H3": "R2C3"
}
]
Am I understanding this correctly?
Yes that's correct, a null value in there would seem to make more sense.
Is there any solution with olspan and rowspan support?
@rattozone yes, colspan and rowspan are supported
closing do to inactivity
Hi, thanks for this code... finding it very useful. One thing we are running into is when using a table with colspan, the value is duplicated in the json output.
So for instance I have a table with 2 rows and 3 columns, and a COLSPAN. The values in the table would be row1: c1, c2, c3 | row2: c4, c5 (COLSPAN on columns 1 and 2 of second row).
The JSON output looks like this...
c1,c2,c3 c4,c4,c5
Any way around this?