8 / 8
Apr 2009

Hi there,



I am trying to paste codes into the box and they look like each is on a line by itself. But then when I test it they all become one long code. I tried importing from Text Edit, had my brother make a text file on a PC and email me then I copied and pasted it, still didn't work.



I'm on a mac. Would that effect it? I don't want to have to go into the file and delete, return, after each code as that would take forever!



Thanks for your help,

Joe

  • created

    Apr '09
  • last reply

    Apr '09
  • 7

    replies

  • 1.3k

    views

  • 2

    users

  • 2

    links

There are differences in how plaintext files indicate a newline in Mac, Windows and Unix/Linux. You may want to try opening your brother's PC file on your Mac using the free TextWrangler program:

http://www.barebones.com/products/textwrangler/



You can open the file in TextWrangler, copy from there and paste into E-junkie, and if that doesn't work, try using TextWrangler's command to change line endings before you copy and paste.

Tried Text Wrangler to no avail. Anytime I copy and paste into the box it puts them all together, even though at first it all looks fine.



The only way I have found to make it work so far is to delete return my list in the box, but that will take forever.



I normalized all Line Endings and even made them all windows line endings in Text Wrangler.

I tried codes with only letters and codes with only numbers.



Any other ideas?

So I tried copying and pasting on my brother's pc into the box and that worked.



I'm guessing then that stored codes copying/pasting on a mac is not possible?

Has anyone had success with it?



Thanks!

I'll ask one of our staff who uses a Mac to double-check, but so far as I know it should work fine. I think the problem may be that your source file was initially generated on a PC, but then subsequently sent to a Mac, opened and copy-pasted from there, so the line-endings got "lost in translation" when moving the file from a PC origin to a Mac.



Did you try the free TextWrangler program I suggested? That's a bit more sophisticated at handling cross-platform newline characters properly.

Thanks Tyson,



Curious to see what they say. I tried Text Wrangler and made it format it to Unix and then to Windows and no luck. I actually got the list from Random.org and just copy and pasted from there originally.



I think the issue is with the Mac in the copy and paste and it reformatting it to Mac line breaks and then the box on e-junkie not recognizing the Mac line breaks.



Look forward to seeing what they say. I did get it to work on a PC but that's problematic as I have to go to the PC to do it instead of just on my mac.



Thanks again!

Joe

Our resident Mac user just confirmed that copy-pasting a list into the stored codes field appears to keep the newlines after initially pasting-in the list, but it does not in fact retain the newlines after clicking Submit to save changes. This happened even if she copy-pasted directly from a "native" TextEdit file created on the Mac itself, and also when she copied directly from output generated from Random.org/strings/.



Funny thing is, Mac newlines these days are the same as Unix newlines, since Mac OS X is based on a derivative of BSD Unix, and our server is also running a Unix-style OS. I'm wondering if it may be a Flash problem or limitation, since our Admin panels are all Flash-based. I'll bring this matter to the attention of Development.

I've done a bit of research on this issue and have confirmed that the loss of newlines when pasting text from a Mac into Flash (which our Admin panels are based on) is a known issue with the Flash plugin for Mac itself -- see bug report filed with Adobe here:

http://bugs.adobe.com/jira/browse/FP-780



I have passed this info along to our Lead Developer, to see if we can hack together a workaround before Adobe (hopefully soon!) fixes this bug in the Flash plugin for Mac itself.