diff --git a/Userland/ls.cpp b/Userland/ls.cpp index 9c2c690c8e..689c16dfee 100644 --- a/Userland/ls.cpp +++ b/Userland/ls.cpp @@ -284,7 +284,8 @@ int do_file_system_object_short(const char* path) printed_on_row = 0; } } - printf("\n"); + if (printed_on_row) + printf("\n"); return 0; }