flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Harbs <harbs.li...@gmail.com>
Subject Re: Replace Line Tabulation?
Date Tue, 26 May 2015 17:14:40 GMT
I’m thinking of doing this in TextClipboard.importScrap():

textOnClipboard = importFunctor(descriptor.clipboardFormat);
textOnClipboard = textOnClipboard.replace(/\u000B/g,"\u2028");

Sounds reasonable?

On May 26, 2015, at 8:08 PM, Harbs <harbs.lists@gmail.com> wrote:

> Any suggestions on a good place to do this replacement?
> 
> On May 26, 2015, at 4:36 PM, Harbs <harbs.lists@gmail.com> wrote:
> 
>> Yes. \u000B. Sorry for the typo.
>> 
>> On May 26, 2015, at 4:34 PM, Alex Harui <aharui@adobe.com> wrote:
>> 
>>> 0008 or 000B?
>>> 
>>> The internet seems to indicate that line tab (or vertical tab) is \u000b)
>>> and that there is no convention for its use, so replacing it should be ok.
>>> 
>>> -Alex
>>> 
>>> On 5/26/15, 12:55 AM, "Harbs" <harbs.lists@gmail.com> wrote:
>>> 
>>>> I just ran into a situation where I got bitten by a line tabulation
>>>> character (\u0008) in some TLF text. Apparently Powerpoint uses that
>>>> character for new lines within a paragraph. I believe that \u2028 is more
>>>> appropriate for that use case. \u0008 renders XML invalid while \u2028
>>>> does not.
>>>> 
>>>> As a point of reference: InDesign uses \u2028 for soft returns.
>>>> 
>>>> Can anyone think of any valid reason not to replace \u0008 with \u2028
>>>> when text is pasted into TLF?
>>>> 
>>>> Harbs
>>> 
>> 
> 


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message