You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I change it to use formatOptions.NewLineCharacter, the tests fail as it looks like all expected results are in \n and not honouring the formatter settings (the json files) accompanying the test files.
I also notice some more replaces solely on \n. Are you internally converting everything to \n and when writing the result file convert it to the wanted line ending?
The text was updated successfully, but these errors were encountered:
jvanoostveen
changed the title
Currently, every file gets added a \n even when line endings are set to \r\n.
Every file gets added a \n even when line endings are set to \r\n.
Oct 13, 2015
The problem seems to be in:
( https://github.com/vvakame/typescript-formatter/blob/master/lib/index.ts#L110 )
When I change it to use
formatOptions.NewLineCharacter
, the tests fail as it looks like all expected results are in\n
and not honouring the formatter settings (the json files) accompanying the test files.I also notice some more replaces solely on
\n
. Are you internally converting everything to\n
and when writing the result file convert it to the wanted line ending?The text was updated successfully, but these errors were encountered: