> On 27 Sep 2016, at 7:28 PM, Felipe Monteiro de Carvalho > <felipemonteiro.carva...@gmail.com> wrote: > > By the way, not sure if this makes a difference, but the original text > was added via NSTextView.string > > It is not text inputted by the user. >
Well, a NSTextView can’t have a string unless it came from somewhere, therefore that isn’t the ‘original’ string. Perhaps the original string has those line breaks? If it was cut+pasted from a block of text that had forced line endings, NSTextView will preserve those, but it definitely never adds them as part of its layout process. —Graham _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com