Skip to content
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

Can't see what the difference is in Ward diff #370

Open
JosephTLyons opened this issue Mar 25, 2023 · 0 comments
Open

Can't see what the difference is in Ward diff #370

JosephTLyons opened this issue Mar 25, 2023 · 0 comments

Comments

@JosephTLyons
Copy link

The test:

@test("test create_markdown_table")
def _():
    column_data = {
        "commands": [
            "Cut to end of line",
            "Transpose",
            "Delete to beginning of line"
        ],
        "shortcuts": [
            "`Control + K`",
            "`Control + T`",
            "`Command + Backspace`"
        ],
        "targets": [
            "Editor",
            "Editor",
            "Editor"
        ]
    }

    markdown_table = """
        | **Command**                 | **Target**   | **Default Shortcut**   |
        |-----------------------------|--------------|------------------------|
        | Cut to end of line          | Editor       | `Control + K`          |
        | Delete to beginning of line | Editor       | `Command + Backspace`  |
        | Transpose                   | Editor       | `Control + T`          |
    """
    assert create_markdown_table(column_data) == textwrap.dedent(markdown_table)

The output:

SCR-20230325-kwos

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant