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

@@ -1,5 +1,6 @@
# ncmpcpp-0.10 (????-??-??) # ncmpcpp-0.10 (????-??-??)
* Add the configuration option `mpd_password`. * Add the configuration option `mpd_password`.
* Separate chunks of lyrics with a double newline.
# ncmpcpp-0.9.2 (2021-01-24) # ncmpcpp-0.9.2 (2021-01-24)
* Revert suppression of output of all external commands as that makes e.g album * Revert suppression of output of all external commands as that makes e.g album

View File

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