]> gitweb.hhaalo.de Git - scantopdf.git/commitdiff
trimm cutpage string
authorBastian Dehn <hhaalo@arcor.de>
Sat, 18 Oct 2025 18:04:37 +0000 (20:04 +0200)
committerBastian Dehn <hhaalo@arcor.de>
Sat, 18 Oct 2025 18:04:37 +0000 (20:04 +0200)
src/scanbasic.sh

index ecfa1ad796efd1d3eff3619adaad6ec429f21a97..5c634db15b333780c6e578ee3aad17591f2df497 100644 (file)
@@ -150,7 +150,7 @@ detectsplit()
                || errlog "missing pdf" \
                || return $?
 
-       trenn=$(pdfgrep "CUTPAGE-CUTPAGE-CUTPAGE-CUTPAGE" $pdf)
+       trenn=$(pdfgrep "CUTPAGE-CUTPAGE-CUTPAGE-CUTPAGE" $pdf | xargs)
 
        [ "$trenn" == "CUTPAGE-CUTPAGE-CUTPAGE-CUTPAGE" ] \
                && echo "true" \