Separate chunks of lyrics with a double newline

This commit is contained in:
Andrzej Rybczak
2021-01-26 19:06:26 +01:00
parent d9c55771bb
commit 689771c2f7
2 changed files with 5 additions and 0 deletions

View File

@@ -102,7 +102,11 @@ LyricsFetcher::Result LyricsFetcher::fetch(const std::string &artist,
{
postProcess(*it);
if (!it->empty())
{
data += *it;
if (it != lyrics.end() - 1)
data += "\n\n";
}
}
result.second = data;