From f76d20ca46b8bd08423de3f2d56e8a7037329859 Mon Sep 17 00:00:00 2001 From: hut Date: Tue, 5 Feb 2013 03:13:57 +0100 Subject: data/scope.sh: trim output of highlight --- ranger/data/scope.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ranger/data/scope.sh b/ranger/data/scope.sh index d17d24de..8a0f20c4 100755 --- a/ranger/data/scope.sh +++ b/ranger/data/scope.sh @@ -70,7 +70,7 @@ esac case "$mimetype" in # Syntax highlight for text files: text/* | */xml) - try highlight --out-format=ansi "$path" && { dump; exit 5; } || exit 2;; + try highlight --out-format=ansi "$path" && { dump | trim; exit 5; } || exit 2;; # Ascii-previews of images: image/*) img2txt --gamma=0.6 --width="$width" "$path" && exit 4 || exit 1;; -- cgit 1.4.1-2-gfad0