Skip to content

rowspan in cell #5

@JF002-Gelinas

Description

@JF002-Gelinas

Any suggestions on how handle the following table format?

const HTML_TABLE_ROW_SPAN: &'static str = r#"
<table id="first">
    <tbody>
        <tr><th>Name</th><th>Age</th></tr>
        <tr><td rowspan=2>John</td><td>20</td></tr>
        <tr><td>1</td></tr>
        <tr><td rowspan=2>Greg</td><td>22</td></tr>
        <tr><td>2</td></tr>
    </tbody>
</table>
"#;

EDIT:
If any one ever encounters something similar, my current solution is to compare
the length of table headers to the length of row cells,
on subsequent rows there will always be less cells.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions