FWFile.fwWriteln forces Mac CR instead of Unix LF in external files

Given an array of content: [‘foo’, ‘bar’, ‘baz’], if I call:

for (var i=0; i < content.length; i++) {
  myFile.fwWriteln(content[i]);
};

I will get a file with Mac CR instead of Unix LF eol characters.

And this is in a document with linefeeds already set to Unix at the Document Setup level. Is there any control over this behavior? I have resorted to this instead, but it’s not optimal (I’d prefer to have these linefeeds follow the document’s lead):

for (var i=0; i < content.length; i++) {
  myFile.fwWrite(content[i] + "n");
};

Thanks in advance,

Walter


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

On 02/01/2013 03:55, Walter Lee Davis wrote:

Is there any control over this behavior?

It looks like the r is hard-coded without any control of it I’m afraid.

Stewart


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options