about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorShervin Sahba <shervin@tuta.io>2021-12-13 01:11:50 -0800
committerShervin Sahba <shervin@tuta.io>2021-12-13 01:11:50 -0800
commit9da2b4c79323a3f34da8d54198364d549a29ff00 (patch)
tree253667f6f0e4874b5c3cecf2031d76fdb0e8d873
parent0b77fb8aba2da25ea452c14f6876fde6b50b3838 (diff)
downloadranger-9da2b4c79323a3f34da8d54198364d549a29ff00.tar.gz
broke up cases for OpenOffice docs, so ods/odp files would not use pandoc
-rwxr-xr-xranger/data/scope.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/ranger/data/scope.sh b/ranger/data/scope.sh
index 044b3f53..0c003399 100755
--- a/ranger/data/scope.sh
+++ b/ranger/data/scope.sh
@@ -80,12 +80,16 @@ handle_extension() {
             exit 1;;
 
         ## OpenDocument
-        odt|ods|odp|sxw)
+        odt|sxw)
             ## Preview as text conversion
             odt2txt "${FILE_PATH}" && exit 5
             ## Preview as markdown conversion
             pandoc -s -t markdown -- "${FILE_PATH}" && exit 5
             exit 1;;
+        ods|odp)
+            ## Preview as text conversion (unsupported by pandoc for markdown)
+            odt2txt "${FILE_PATH}" && exit 5
+            exit 1;;
 
         ## XLSX
         xlsx)