From ef79657fc718ebd1c90c208bbe5f4d69d2bd3a30 Mon Sep 17 00:00:00 2001 From: Michael Reed Date: Tue, 23 Oct 2018 19:46:59 -0400 Subject: inserted fmt to the DJVU text conversion --- ranger/data/scope.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ranger/data/scope.sh b/ranger/data/scope.sh index dfc55aef..bf67c906 100755 --- a/ranger/data/scope.sh +++ b/ranger/data/scope.sh @@ -96,8 +96,8 @@ handle_image() { # DJVU image/vnd.djvu) - # Preview as text conversion - djvutxt "${FILE_PATH}" && exit 5 + # Preview as text conversion (requires djvulibre) + djvutxt "${FILE_PATH}" | fmt -w ${PV_WIDTH} && exit 5 exiftool "${FILE_PATH}" && exit 5 exit 1;; -- cgit 1.4.1-2-gfad0