From 39a601927f6f10240a971ef10e4e64d20fe1c6f4 Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Tue, 26 Mar 2019 16:36:28 +0100 Subject: [PATCH] Remove useless empty lines from stack traces This printed things like ``` in function 'f' called on standard input in function 'd' called on standard input in function 'b' called on standard input in function 'a' called on standard input ``` As a first step, it removes the empty lines so it's now ``` in function 'f' called on standard input in function 'd' called on standard input in function 'b' called on standard input in function 'a' called on standard input ``` See #5434. --- src/parser.cpp | 2 -- tests/invocation/broken-config-continues.err | 1 - 2 files changed, 3 deletions(-) diff --git a/src/parser.cpp b/src/parser.cpp index 572f9b5bb..8e8c71138 100644 --- a/src/parser.cpp +++ b/src/parser.cpp @@ -416,8 +416,6 @@ void parser_t::stack_trace_internal(size_t block_idx, wcstring *buff) const { append_format(*buff, _(L"\twith parameter list '%ls'\n"), tmp.c_str()); } } - - append_format(*buff, L"\n"); } // Recursively print the next block. diff --git a/tests/invocation/broken-config-continues.err b/tests/invocation/broken-config-continues.err index c4165a1a8..d15aebbd8 100644 --- a/tests/invocation/broken-config-continues.err +++ b/tests/invocation/broken-config-continues.err @@ -4,4 +4,3 @@ syntax-error ^ from sourcing file $XDG_CONFIG_HOME/fish/config.fish called during startup -