Making the clipboard Excel compatible

Phil Davis revdev at pdslabs.net
Mon Oct 2 12:44:10 EDT 2017


I'm wondering if this is a Unicode-related thing. No time to experiment 
right now however.

Phil Davis


On 10/2/17 7:41 AM, Bob Sneidar via use-livecode wrote:
> If I had to guess I'd say that the clipboard contains CRs and LFs for each single line break, and other software is interpreting this as 2 line breaks. Setting the clipboard data ["text"] *decodes* it so to speak. When I copy code and paste it into my email program (Apple Mail) it does the double line thing, but if I paste it first into a text only editor then copy/paste it into my mail program it's fine. That tells me that the text editor is handling the cr/lf condition like you would expect, and Apple Mail isn't.
>
> Bob S
>
>
>> On Sep 30, 2017, at 23:41 , Michael Julian Lew via use-livecode <use-livecode at lists.runrev.com> wrote:
>>
>> Excel doesn't like the line endings that Livecode puts into the clipboardData["text"] and renders the lines as if they were double spaced.
>>
>> I have asked once before what magic wand to wave to fix the problem, but I forgot the answer and googling was entirely unsuccessful (although I found that there are lots of articles about the strangeness of the Excel clipboard). Can someone remind me?
>>
>> Michael Lew
>> _______________________________________________
>> use-livecode mailing list
>> use-livecode at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>

-- 
Phil Davis





More information about the Use-livecode mailing list