about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorMichael Reed <michaelreed@crucialflow.com>2018-10-23 19:46:59 -0400
committerMichael Reed <michaelreed@crucialflow.com>2018-10-24 09:00:05 -0400
commitef79657fc718ebd1c90c208bbe5f4d69d2bd3a30 (patch)
treeb2bb318fecf0af2c64e09741bf0a296ed1274720
parentc4b84b010527ae40aec865b46393effbdde67385 (diff)
downloadranger-ef79657fc718ebd1c90c208bbe5f4d69d2bd3a30.tar.gz
inserted fmt to the DJVU text conversion
-rwxr-xr-xranger/data/scope.sh4
1 files 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;;