From c825a0ac07768c467e054aeaf66a6200fb4af388 Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Sun, 3 Jul 2016 13:38:41 +0200 Subject: Simplifiy pentadactyl citation escape logic --- pentadactyl/.pentadactylrc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pentadactyl/.pentadactylrc b/pentadactyl/.pentadactylrc index 65312fa..5988081 100644 --- a/pentadactyl/.pentadactylrc +++ b/pentadactyl/.pentadactylrc @@ -58,11 +58,11 @@ nmap b :push2inbox command! cite -js <\\\n' - + '\ \ \ \ ― ' + buffer.URL + + ' [...] ' + content.getSelection().toString().replace('\n', '\n ') + ' [...]\\n' + + '
\
\\n' + + ' ― ' + buffer.URL + '\\n'; -dactyl.execute('!echo -e "' + entry + '" >> ~/note/src/web/inbox.wiki'); +dactyl.execute('!echo -e "' + entry.replace('"', '\"') + '" >> ~/note/src/web/inbox.wiki'); EOF nmap c :cite -- cgit v1.2.3