commit:     c1af53561c8f8bdf253f46c6b9e442fd457c5a45
Author:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
AuthorDate: Wed Apr  6 22:16:35 2016 +0000
Commit:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
CommitDate: Wed Apr  6 22:20:05 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c1af5356

sys-apps/less: lesspipe: split pdf/ps handling #477860

 sys-apps/less/files/lesspipe.sh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/sys-apps/less/files/lesspipe.sh b/sys-apps/less/files/lesspipe.sh
index c0f30e3..291d6d6 100755
--- a/sys-apps/less/files/lesspipe.sh
+++ b/sys-apps/less/files/lesspipe.sh
@@ -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

Reply via email to