aboutsummaryrefslogtreecommitdiffstats
path: root/src/ls.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/ls.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ls.c b/src/ls.c
index f477d7fa2..a12608894 100644
--- a/src/ls.c
+++ b/src/ls.c
@@ -172,7 +172,9 @@ int lsPlaylists(FILE * fp, char * utf8path) {
node = list->firstNode;
while(node!=NULL) {
- myfprintf(fp,"playlist: %s%s\n",dup,node->key);
+ if(!strchr(node->key, '\n')) {
+ myfprintf(fp,"playlist: %s%s\n",dup,node->key);
+ }
node = node->nextNode;
}