Skip to content

Warn if table is not rectangular #3

Description

@DavidGinzberg

from source:

...
      cols = row.findAll(['td','th'])
      print(f"Found {len(cols)} columns.")
      #TODO: Detect and discard empty tables (those that contain 1 row, 1 column, consisting of an empty string...I think?)
      #TODO: Add a warning for non-rectangular tables.
...

Tables with varying numbers of columns per row may be a sign that there are layout tables, errors, or multicolumn headers (not currently supported). Produce a warning when these are seen (and allow it to be disabled or cause script to abort, both based on command flags)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions