ijprest / keyboard-layout-editor

Web application to enable the design & editing of keyboard layouts
http://www.keyboard-layout-editor.com/
Other
1.3k stars 241 forks source link

Downloaded JSON appears to have many extra newlines #151

Open dragon788 opened 8 years ago

dragon788 commented 8 years ago

I was going to copy from the raw data area into another template because it looked pretty good to submit a new layout via a pull request, but since it didn't have quoted keys I figured it was best to download. Upon opening the downloaded copy of the same data everything was OK (quoting wise), but it had excessive newlines when opened into Vim or Notepad++.

iandoug commented 8 years ago

What platform you using? Sounds like a classic end-of-line issue. Vim -> Linux?, Notepad++ -> Win?, so I'm confused :-)

dragon788 commented 8 years ago

I'm using gVim and notepad++ on Windows. It appears the output Json when downloading might have a pretty print function applied to it, which seems to turn most of the whitespace into newlines. gVim doesn't add any processing that isn't in the data. On Dec 1, 2015 3:22 AM, "Ian Douglas" notifications@github.com wrote:

What platform you using? Sounds like a classic end-of-line issue. Vim -> Linux?, Notepad++ -> Win?, so I'm confused :-)

— Reply to this email directly or view it on GitHub https://github.com/ijprest/keyboard-layout-editor/issues/151#issuecomment-160905391 .