Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Improve table detection in checkers #70

Open
ezio-melotti opened this issue Jul 30, 2023 · 0 comments
Open

Improve table detection in checkers #70

ezio-melotti opened this issue Jul 30, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@ezio-melotti
Copy link
Collaborator

In #65 I implemented a check for tables:

        if (stripped_line.startswith("|") and stripped_line.endswith("|") and
            stripped_line.count("|") >= 4 and "|" in match.group(0)):
            return  # we don't handle tables yet.

that is more robust than the one used in other checkers:

        if paragraph.count("|") > 4:
            return  # we don't handle tables yet.

This check should be factored out in a separate function, and used in the other checkers too.

@ezio-melotti ezio-melotti added the enhancement New feature or request label Jul 30, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant