diff options
author | Andrzej Rybczak <andrzej@rybczak.net> | 2021-01-26 19:06:26 +0100 |
---|---|---|
committer | Andrzej Rybczak <andrzej@rybczak.net> | 2021-01-26 19:06:55 +0100 |
commit | 689771c2f7734d3473dd45cbb4ce8b95b9551ed5 (patch) | |
tree | 53345d2374087e7d325296bd98425ef5688a7de2 /src | |
parent | d9c55771bb1059671486b1df245075e10bd6e853 (diff) |
Separate chunks of lyrics with a double newline
Diffstat (limited to 'src')
-rw-r--r-- | src/lyrics_fetcher.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lyrics_fetcher.cpp b/src/lyrics_fetcher.cpp index 1cea52aa..12a6fb2f 100644 --- a/src/lyrics_fetcher.cpp +++ b/src/lyrics_fetcher.cpp @@ -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; |