An issue was reported on Mergely #154 and on investigation, I found that it appears codemirror is changing line endings. E.g.:
// 0x62 0x61 0x6e 0x61 0x6e 0x61 0xd 0xa
doc.setValue('banana\r\n');
// 0x62 0x61 0x6e 0x61 0x6e 0x61 0xa
doc.getValue()
An issue was reported on Mergely #154 and on investigation, I found that it appears codemirror is changing line endings. E.g.:
// 0x62 0x61 0x6e 0x61 0x6e 0x61 0xd 0xa
doc.setValue('banana\r\n');
// 0x62 0x61 0x6e 0x61 0x6e 0x61 0xa
doc.getValue()
Thanks for the quick response!