[rkward-cvs] SF.net SVN: rkward:[2792] trunk/rkward/rkward/dataeditor/rktextmatrix.cpp

tfry at users.sourceforge.net tfry at users.sourceforge.net
Thu Mar 18 09:21:32 UTC 2010


Revision: 2792
          http://rkward.svn.sourceforge.net/rkward/?rev=2792&view=rev
Author:   tfry
Date:     2010-03-18 09:21:31 +0000 (Thu, 18 Mar 2010)

Log Message:
-----------
Remove trailing linebreaks

Modified Paths:
--------------
    trunk/rkward/rkward/dataeditor/rktextmatrix.cpp

Modified: trunk/rkward/rkward/dataeditor/rktextmatrix.cpp
===================================================================
--- trunk/rkward/rkward/dataeditor/rktextmatrix.cpp	2010-03-17 10:08:49 UTC (rev 2791)
+++ trunk/rkward/rkward/dataeditor/rktextmatrix.cpp	2010-03-18 09:21:31 UTC (rev 2792)
@@ -67,6 +67,7 @@
 	if (text.isEmpty ()) return ret;
 
 	QStringList textrows = text.split (brk);
+	if (textrows.last ().isEmpty ()) textrows.removeLast ();	// some apps append a trailing line break
 	for (int i = 0; i < textrows.size (); ++i) {
 		QStringList split = textrows[i].split (tab);
 		ret.appendRow (split);


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the rkward-tracker mailing list