From a49fd8ec8b1532c0414d6e14f1e4fcbd2d643456 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sat, 3 Feb 2007 02:39:50 +0000 Subject: [PATCH] fix newline accumulation --- stepmania/src/NotesLoaderSM.cpp | 2 +- stepmania/src/NotesWriterSM.cpp | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/stepmania/src/NotesLoaderSM.cpp b/stepmania/src/NotesLoaderSM.cpp index 03d002931e..544d98f272 100644 --- a/stepmania/src/NotesLoaderSM.cpp +++ b/stepmania/src/NotesLoaderSM.cpp @@ -28,7 +28,7 @@ void SMLoader::LoadFromSMTokens( TrimLeft( sStepsType ); TrimRight( sStepsType ); TrimLeft( sDescription ); TrimRight( sDescription ); TrimLeft( sDifficulty ); TrimRight( sDifficulty ); - + TrimLeft( sNoteData ); TrimRight( sNoteData ); // LOG->Trace( "Steps::LoadFromSMTokens()" ); diff --git a/stepmania/src/NotesWriterSM.cpp b/stepmania/src/NotesWriterSM.cpp index 0d902659ea..c5f38961ef 100644 --- a/stepmania/src/NotesWriterSM.cpp +++ b/stepmania/src/NotesWriterSM.cpp @@ -181,9 +181,6 @@ static RString GetSMNotesTag( const Song &song, const Steps &in, bool bSavingCac FOREACH_RadarCategory( rc ) asRadarValues.push_back( ssprintf("%.3f", rv[rc]) ); } - /* Don't append a newline here; it's added in NoteDataUtil::GetSMNoteDataString. - * If we add it here, then every time we write unmodified data we'll add an extra - * newline and they'll accumulate. */ lines.push_back( ssprintf( " %s:", join(",",asRadarValues).c_str() ) ); RString sNoteData;