You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by ha...@apache.org on 2015/05/26 22:40:13 UTC
git commit: [flex-tlf] [refs/heads/develop] - Replace line tab
characters with new line characters on paste
Repository: flex-tlf
Updated Branches:
refs/heads/develop 804639866 -> e86e835a3
Replace line tab characters with new line characters on paste
Project: http://git-wip-us.apache.org/repos/asf/flex-tlf/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-tlf/commit/e86e835a
Tree: http://git-wip-us.apache.org/repos/asf/flex-tlf/tree/e86e835a
Diff: http://git-wip-us.apache.org/repos/asf/flex-tlf/diff/e86e835a
Branch: refs/heads/develop
Commit: e86e835a3213f3628e9bfe54774a34b1df05f55a
Parents: 8046398
Author: Harbs <ha...@in-tools.com>
Authored: Tue May 26 23:39:57 2015 +0300
Committer: Harbs <ha...@in-tools.com>
Committed: Tue May 26 23:39:57 2015 +0300
----------------------------------------------------------------------
textLayout/src/flashx/textLayout/edit/TextClipboard.as | 3 +++
1 file changed, 3 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-tlf/blob/e86e835a/textLayout/src/flashx/textLayout/edit/TextClipboard.as
----------------------------------------------------------------------
diff --git a/textLayout/src/flashx/textLayout/edit/TextClipboard.as b/textLayout/src/flashx/textLayout/edit/TextClipboard.as
index 405de63..28b4acd 100644
--- a/textLayout/src/flashx/textLayout/edit/TextClipboard.as
+++ b/textLayout/src/flashx/textLayout/edit/TextClipboard.as
@@ -102,7 +102,10 @@ package flashx.textLayout.edit
var descriptor:FormatDescriptor = TextConverter.getFormatDescriptorAt(i);
textOnClipboard = importFunctor(descriptor.clipboardFormat);
if (textOnClipboard && (textOnClipboard != ""))
+ {
+ textOnClipboard = textOnClipboard.replace(/\u000B/g,"\u2028");
textScrap = importToScrap(textOnClipboard, descriptor.format);
+ }
}
return textScrap;
}