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

hurlfmt --no-format displays extra new line #1058

Closed
jcamiel opened this issue Dec 5, 2022 · 0 comments · Fixed by #1187
Closed

hurlfmt --no-format displays extra new line #1058

jcamiel opened this issue Dec 5, 2022 · 0 comments · Fixed by #1187
Assignees
Labels
bug Something isn't working
Milestone

Comments

@jcamiel
Copy link
Collaborator

jcamiel commented Dec 5, 2022

hurlfmt --no-format displays extra new line

Given this Hurl file:

GET http://localhost:8000/hello
HTTP 200

With no new line at the end of HTTP 200 (beware that vim adds a newline by default), hurlfmt displays an extra new line:

$ cat test.hurl
GET http://localhost:8000/hello
HTTP 200%
$ hurlfmt --no-format --no-color /tmp/test.hurl
GET http://localhost:8000/hello
HTTP 200
$

(% is displayed by zsh when the file doesn't end with a newline)

@jcamiel jcamiel added the bug Something isn't working label Dec 5, 2022
@jcamiel jcamiel assigned jcamiel and fabricereix and unassigned jcamiel Jan 20, 2023
@fabricereix fabricereix linked a pull request Jan 22, 2023 that will close this issue
@jcamiel jcamiel added this to the 2.0.0 milestone Jan 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants