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

Newline inconsistency between linux and windows #255

Open
sowhatdoido opened this issue Jun 8, 2023 · 0 comments
Open

Newline inconsistency between linux and windows #255

sowhatdoido opened this issue Jun 8, 2023 · 0 comments

Comments

@sowhatdoido
Copy link

Describe the bug
Looping through a list renders newlines inconsistently between linux and windows. Specifically, windows seems to add extra newline after every row, when linux doesn't.

To Reproduce
Use the following to print a list of keypair values:
image

On Linux:

KEY1=VALUE1KEY2=VALUE2

On Windows:


KEY1=VALUE1

KEY2=VALUE2

Expected behavior
Expectation is that rendering newline characters regardless of environment.

Package & Environment Details

  • Environment: Node v16.19.1
  • Windows Rendering: windows 10 using vscode, running bash
  • Linux: windows 11 using WSL, and a jenkins box running linux (unsure what flavor)
  • Version: "^1.2.8",

Additional context
I think windows is the problem here. If I copy the example from your REPL exactly (note the newlines before and after what's being printed):

{{@foreach(it) => key, val}}

{{key}}={{val}}

{{/foreach}}

I get an output that yields:



KEY1=VALUE1



KEY2=VALUE2


There is a bunch of unexpected whitespace when compared to this:
image

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