From kde-commits Sun Nov 30 22:49:34 2003 From: Jason Kivlighn Date: Sun, 30 Nov 2003 22:49:34 +0000 To: kde-commits Subject: kdenonbeta/krecipes/src/exporters X-MARC-Message: https://marc.info/?l=kde-commits&m=107023266008754 CVS commit by jkivlighn: Don't cut off a character of the ingredients when an ingredient uses multiple lines M +1 -2 mmfexporter.cpp 1.8 --- kdenonbeta/krecipes/src/exporters/mmfexporter.cpp #1.7:1.8 @@ -128,5 +128,5 @@ void MMFExporter::writeMMFIngredients( Q content += ing_name+"\n"; for ( unsigned int i = 0; i < (ing->name.length()-1) / 28; i++ ) //if longer than 28 chars, continue on next line(s) - content += " -"+ing->name.mid(28*(i+1)+1,28)+"\n"; + content += " -"+ing->name.mid(28*(i+1),28)+"\n"; } } @@ -134,5 +134,4 @@ void MMFExporter::writeMMFIngredients( Q void MMFExporter::writeMMFDirections( QString &content, Recipe *recipe ) { - //FIXME: I don't seem to be preserving new-lines content += wrapText(recipe->instructions,80).join("\n")+"\n"; }