Updated Branches:
  refs/heads/develop c808bdeb9 -> 15ceae3d2

FLEX-33278 fix check for missing paragraph at end of line


Project: http://git-wip-us.apache.org/repos/asf/flex-tlf/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-tlf/commit/15ceae3d
Tree: http://git-wip-us.apache.org/repos/asf/flex-tlf/tree/15ceae3d
Diff: http://git-wip-us.apache.org/repos/asf/flex-tlf/diff/15ceae3d

Branch: refs/heads/develop
Commit: 15ceae3d2b8124eb187a6db3b09297443369499d
Parents: c808bde
Author: Justin Mclean <[email protected]>
Authored: Fri Jul 19 11:56:21 2013 +1000
Committer: Justin Mclean <[email protected]>
Committed: Fri Jul 19 11:56:21 2013 +1000

----------------------------------------------------------------------
 textLayout/src/flashx/textLayout/conversion/PlainTextImporter.as | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-tlf/blob/15ceae3d/textLayout/src/flashx/textLayout/conversion/PlainTextImporter.as
----------------------------------------------------------------------
diff --git a/textLayout/src/flashx/textLayout/conversion/PlainTextImporter.as 
b/textLayout/src/flashx/textLayout/conversion/PlainTextImporter.as
index 49988f0..edc0798 100644
--- a/textLayout/src/flashx/textLayout/conversion/PlainTextImporter.as
+++ b/textLayout/src/flashx/textLayout/conversion/PlainTextImporter.as
@@ -102,8 +102,7 @@ package flashx.textLayout.conversion
 
                        // Mark partial last paragraph (string doesn't end in 
paragraph terminator)
                        if (useClipboardAnnotations && 
-                               (source.lastIndexOf('\u000A', source.length - 
2) < 0 || 
-                                       source.lastIndexOf('\u000D\u000A', 
source.length - 3) < 0))
+                               source.lastIndexOf('\u000A', source.length - 1) 
!= source.length - 1)
                        {
                                var lastLeaf:FlowLeafElement = 
textFlow.getLastLeaf();
                                
lastLeaf.setStyle(ConverterBase.MERGE_TO_NEXT_ON_PASTE, "true");

Reply via email to