aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2019-09-13 12:53:05 -0300
committerSilvio Rhatto <rhatto@riseup.net>2019-09-13 12:53:05 -0300
commit4017371fd731907ed3f9cd60b0660ffd36d8acd0 (patch)
treea17cef469bf6d43c0c6a71b83a8a633d745cd71b
parent2a0972655f1aa91b721f016ed764962eff7668c0 (diff)
downloadutils-x11-4017371fd731907ed3f9cd60b0660ffd36d8acd0.tar.gz
utils-x11-4017371fd731907ed3f9cd60b0660ffd36d8acd0.tar.bz2
Spoolpaste: remove additional newline from pastes
-rwxr-xr-xspoolpaste2
1 files changed, 1 insertions, 1 deletions
diff --git a/spoolpaste b/spoolpaste
index 48b6dfd..f758fc0 100755
--- a/spoolpaste
+++ b/spoolpaste
@@ -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)..."