[GME-commit] GMESRC/GME/XmlBackEnd/SVNCode Util.cpp,1.3,1.4

Log messages of CVS commits gme-commit at list.isis.vanderbilt.edu
Mon Feb 25 09:50:46 CST 2008


Update of /project/gme-repository/GMESRC/GME/XmlBackEnd/SVNCode
In directory escher:/tmp/cvs-serv5517

Modified Files:
	Util.cpp 
Log Message:
Fix.


CVS User: Zoltan Molnar, ISIS (zolmol)

Index: Util.cpp
===================================================================
RCS file: /project/gme-repository/GMESRC/GME/XmlBackEnd/SVNCode/Util.cpp,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** Util.cpp	21 Feb 2008 18:16:59 -0000	1.3
--- Util.cpp	25 Feb 2008 15:50:43 -0000	1.4
***************
*** 416,421 ****
  	while( std::string::npos != p)
  	{
- 		p = buffer.find( "\n");
  	    buffer.replace( p, 1, "<br>");
  	}
  	// removing '\r's
--- 416,421 ----
  	while( std::string::npos != p)
  	{
  	    buffer.replace( p, 1, "<br>");
+ 		p = buffer.find( "\n");
  	}
  	// removing '\r's
***************
*** 423,430 ****
  	while( std::string::npos != p)
  	{
- 		p = buffer.find( "\r");
  	    buffer.erase( p, 1);
  	}
! 	MsgConsole::ssendMsg( "SVN Error details follow:<br>" + buffer, MSG_ERROR);
  	//std::cout << "Error " << buffer << std::endl;
  
--- 423,430 ----
  	while( std::string::npos != p)
  	{
  	    buffer.erase( p, 1);
+ 		p = buffer.find( "\r");
  	}
! 	MsgConsole::ssendMsg( buffer, MSG_ERROR);
  	//std::cout << "Error " << buffer << std::endl;
  



More information about the GME-commit mailing list