summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrzej Rybczak <andrzej@rybczak.net>2021-01-26 19:06:26 +0100
committerAndrzej Rybczak <andrzej@rybczak.net>2021-01-26 19:06:55 +0100
commit689771c2f7734d3473dd45cbb4ce8b95b9551ed5 (patch)
tree53345d2374087e7d325296bd98425ef5688a7de2 /src
parentd9c55771bb1059671486b1df245075e10bd6e853 (diff)
Separate chunks of lyrics with a double newline
Diffstat (limited to 'src')
-rw-r--r--src/lyrics_fetcher.cpp4
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;