mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
sys-apps/less: lesspipe: split pdf/ps handling #477860
This commit is contained in:
@@ -99,7 +99,8 @@ lesspipe() {
|
||||
esac
|
||||
;;
|
||||
*.dvi) dvi2tty "$1" ;;
|
||||
*.ps|*.pdf) ps2ascii "$1" || pstotext "$1" || pdftotext "$1" ;;
|
||||
*.ps) ps2ascii "$1" || pstotext "$1" ;;
|
||||
*.pdf) pdftotext "$1" - || ps2ascii "$1" || pstotext "$1" ;;
|
||||
*.doc) antiword "$1" || catdoc "$1" ;;
|
||||
*.rtf) unrtf --nopict --text "$1" ;;
|
||||
*.conf|*.txt|*.log) ;; # force less to work on these directly #150256
|
||||
|
||||
Reference in New Issue
Block a user