vscode-toml icon indicating copy to clipboard operation
vscode-toml copied to clipboard

Formatter adds a space after some lines

Open max-sixty opened this issue 2 years ago • 1 comments

Thanks for the excellent extension! I find it the best one available.

But currently the toml formatter will add a space after some lines — here's a preview of the diff:

diff --git a/pyproject.toml b/pyproject.toml
index d8bb503..c9ff7e2 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -19,31 +19,31 @@ pattern = 'v?(?P<base>[\d\.]+)'
 [tool.poetry.dependencies]
 python = ">=3.7, <3.10"
 
-PyYAML = "^5.3.1" 
-boto3 = "^1.20.13" 
-click = "^8.0.3" 
+PyYAML = "^5.3.1"
+boto3 = "^1.20.13"
+click = "^8.0.3"

Is this intended?

max-sixty avatar Mar 17 '22 21:03 max-sixty

This is actually causing downstream issues for me as the trailing space is included in poetry.lock.

ferndot avatar Jul 18 '22 19:07 ferndot