Preserving new lines and whitespace

Topics: General
Mar 12, 2013 at 4:16 PM

Is it currently possible (or is it planned) that the tyepscript compiler can be configured to preserve the new lines in the input TS?

I am trying to create a sample that both TS and javascript users can read and use to understand how a library works. However, the javascript code is missing the newlines from the original TS making the code less user friendly (it is still readable just a bit confusing in places).

Mar 14, 2013 at 12:48 AM
Yes, we are aware of issues with whitespace preservation. We are working on fixing those, but may not get to all instances before the next release.
Mar 14, 2013 at 11:05 AM
Oh, awesome.