I am using the powerbi-client javascript library and working on exporting the underlying data behind a visual. In the 'rendered' event, I can successfuly pull the data and can inspect it in Chrome's debug console.
The problem I have however is that if I write the data to the page just using 'document.write(data)', the result doesn't seem to have any carrige returns or line feeds which are necessary to read into something like Excel.
Is there a way around this?