fcrespo82 / fcrespo82/vscode-markdown-table-formatter

Leading and trailing space when formatting without pipes

Open
#7 1 comment 0 reactions 1 assignee Claimed by @fcrespo82 View on GitHub
backlog enhancement
Dominant language
TypeScript
Stars
32
Forks
8
PR merge metrics
No merged PRs in 30d

Description

When formatting with the "Keep First And Last Pipes" option disabled, one space character is inserted before each line, and spaces are included at the end of each line up to the padding limit. IMO it would look better without (particularly the leading space).

Here's a copy-paste. It's much more pronounced if you see it in an editor that displays whitespace.

```markdown
Attribute | Description | Rules
------------|--------------------------------------------------|-------------------------------------------------------------------------------------------------
vehicle_id | The driver's Vehicle Identification Number (VIN) | String of length 17. Raise an `ArgumentError` if it's the wrong length.
status | Is this `Driver` available to drive? | Must be one of `:AVAILABLE` or `:UNAVAILABLE`
trips | A list of trips this driver has driven | Optional parameter. If not provided, initialize to an empty array (similar to `Passenger`).
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.