[Gridflow-cvs] [svn] commit: r6733 - /trunk/src/classes_gui.cxx

svn-gridflow at artengine.ca svn-gridflow at artengine.ca
Sun Mar 6 00:09:29 EST 2011


Author: matju
Date: Sun Mar  6 00:09:29 2011
New Revision: 6733

Log:
remove trailing newline when there is one

Modified:
    trunk/src/classes_gui.cxx

Modified: trunk/src/classes_gui.cxx
==============================================================================
--- trunk/src/classes_gui.cxx (original)
+++ trunk/src/classes_gui.cxx Sun Mar  6 00:09:29 2011
@@ -197,7 +197,7 @@
 		const char *s = ss.data();
 		int n = ss.length();
 		for (int i=0;i<n;i++) {
-			if     (s[i]=='\n') quoted << "\\n";
+			if     (s[i]=='\n') {if (i+1!=n) quoted << "\\n";}
 			else if (s[i]=='{') quoted << "\\x7b";
 			else if (s[i]=='}') quoted << "\\x7d";
 			else if (strchr("[]\"$",s[i])) quoted << "\\" << (char)s[i];



More information about the Gridflow-cvs mailing list