mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-14 18:14:50 +02:00
TWK-770: Fix echonest sentence summary grammar
This commit is contained in:
@@ -597,7 +597,9 @@ EchonestGenerator::sentenceSummary()
|
||||
suffix = ", ";
|
||||
else
|
||||
suffix = ".";
|
||||
} else
|
||||
} else if ( i < required.size() - 2 ) // An item in the list that is before the second to last one, don't use ", and", we only want that for the last item
|
||||
suffix += ", ";
|
||||
else
|
||||
suffix += ", and ";
|
||||
}
|
||||
sentence += center + suffix;
|
||||
|
Reference in New Issue
Block a user