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

Prettier tables #69

Merged
merged 2 commits into from
Oct 8, 2020
Merged

Prettier tables #69

merged 2 commits into from
Oct 8, 2020

Conversation

JaninaWibker
Copy link
Contributor

The column names and the dashes / colons in the line below now match in length. If the column name is too short it is padded with spaces
If "|" appears in a cell it is escaped with a backslash (if it is not already escaped)

Short example:

| name | amount | somesuperlongword |    a |
| ---- | :----: | :---------------- | ---: |
| col1 | col2 | col3 | col4 |

This closes #68, #60, #49 (by updating documentation)

- The column names and the dashes / colons in the line below  now match in length. If the column name is too short it is padded with spaces
- If "|" appears in a cell it is escaped with a backslash (if it is not already escaped)

The existing tests have been altered in order to match the new formatting. A new test has been added as well.

A test for escaping "|"s has also been added.
@IonicaBizau IonicaBizau mentioned this pull request Oct 8, 2020
@IonicaBizau IonicaBizau merged commit 6976acc into IonicaBizau:master Oct 8, 2020
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

Successfully merging this pull request may close these issues.

Match column name length and dashes
2 participants