[rkward-cvs] SF.net SVN: rkward: [996] trunk/rkward/rkward/rkconsole.cpp

tfry at users.sourceforge.net tfry at users.sourceforge.net
Wed Dec 6 18:37:19 UTC 2006


Revision: 996
          http://svn.sourceforge.net/rkward/?rev=996&view=rev
Author:   tfry
Date:     2006-12-06 10:37:18 -0800 (Wed, 06 Dec 2006)

Log Message:
-----------
When piping commands through console, add a newline after the command

Modified Paths:
--------------
    trunk/rkward/rkward/rkconsole.cpp

Modified: trunk/rkward/rkward/rkconsole.cpp
===================================================================
--- trunk/rkward/rkward/rkconsole.cpp	2006-12-05 15:29:35 UTC (rev 995)
+++ trunk/rkward/rkward/rkconsole.cpp	2006-12-06 18:37:18 UTC (rev 996)
@@ -639,7 +639,7 @@
 	} else {
 		QString text = command->command ();
 		text.replace ("\n", QString ("\n") + iprefix);
-		doc->insertText (doc->numLines () - 1, QString (nprefix).length (), text);
+		doc->insertText (doc->numLines () - 1, QString (nprefix).length (), text + "\n");
 		command->addReceiver (this);
 		command->addTypeFlag (RCommand::Console);
 		current_command = command;


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