]> gitweb.fluxo.info Git - utils-x11.git/commitdiff
Spoolpaste: remove additional newline from pastes
authorSilvio Rhatto <rhatto@riseup.net>
Fri, 13 Sep 2019 15:53:05 +0000 (12:53 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Fri, 13 Sep 2019 15:53:05 +0000 (12:53 -0300)
spoolpaste

index 48b6dfd393ed233076ad602386a21141a90e3ef5..f758fc0330f72b494ce5b73924476e1c3e9a9db3 100755 (executable)
@@ -30,7 +30,7 @@ if [ ! -z "$1" ]; then
 
   echo Set $SPOOL to "$FILE"
 else
-  echo -e "\n\n    [...]\n"               >> $SPOOL
+  echo -e "\n    [...]\n"                 >> $SPOOL
   xclip -o | sed -e 's/^\([^ ]\)/    \1/' >> $SPOOL
 
   truncated="$(xclip -o | tr '"' "'" | tr '\n' ' ' | cut -c 1-30)..."