Skip to content

Commit

Permalink
improved output from xlscat
Browse files Browse the repository at this point in the history
  • Loading branch information
wofr06 committed Mar 16, 2024
1 parent c56f214 commit c6c34f0
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions lesspipe.sh
Original file line number Diff line number Diff line change
Expand Up @@ -517,18 +517,15 @@ isfinal () {
{ has_cmd pandoc && istemp "pptx2md --disable-image --disable-wmf \
-o $t2" "$1" && cmd=(pandoc -f markdown -t plain "$t2"); }; } ||
{ has_cmd libreoffice && has_htmlprog && cmd=(isoffice "$1" ppt); } ;;
xlsx)
{ has_cmd xlscat && cmd=(istemp xlscat "$1"); } ||
{ has_cmd libreoffice && has_htmlprog && cmd=(isoffice "$1" xlsx); } ;;
xlsx|ods)
{ has_cmd xlscat && cmd=(istemp "xlscat -L -R all" "$1"); } ||
{ has_cmd libreoffice && has_htmlprog && cmd=(isoffice "$1" "$x"); } ;;
odt)
{ has_cmd odt2txt && cmd=(istemp odt2txt "$1"); } ||
{ has_cmd pandoc && cmd=(pandoc -f odt -t plain "$1"); } ||
{ has_cmd libreoffice && cmd=(isoffice2 "$1"); } ;;
odp)
{ has_cmd libreoffice && has_htmlprog && cmd=(isoffice "$1" odp); } ;;
ods)
{ has_cmd xlscat && t=$t.ods && cat "$1" > "$t" && cmd=(xlscat "$t"); } ||
{ has_cmd libreoffice && has_htmlprog && cmd=(isoffice "$1" ods); } ;;
msword)
t="$1"; [[ "$t" == - ]] && t=/dev/stdin
{ has_cmd wvText && cmd=(istemp wvText "$t" /dev/stdout); } ||
Expand Down

0 comments on commit c6c34f0

Please sign in to comment.