chiark / gitweb /
journalctl: strip TABs and ANSI color sequences from log messages when displaying...
[elogind.git] / src / shared / logs-show.c
index ca5ad43b633477fc8d76379f84a1a2e572c1bebb..04450a550466dd40894df16de4beb046569df1d5 100644 (file)
@@ -179,6 +179,9 @@ static int output_short(
         if (!message)
                 return 0;
 
+        if (!(flags & OUTPUT_SHOW_ALL))
+                strip_tab_ansi(&message, &message_len);
+
         if (priority_len == 1 && *priority >= '0' && *priority <= '7')
                 p = *priority - '0';