From 75920efb25eff64de2aab86f221687927b217bbf Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Sun, 24 Jul 2011 17:58:43 +0200 Subject: [PATCH] Multi-line quoting, close #199 --- 4chan_x.user.js | 1 + changelog | 1 + script.coffee | 1 + 3 files changed, 3 insertions(+) diff --git a/4chan_x.user.js b/4chan_x.user.js index 3264bb062..ab57c29c2 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -1324,6 +1324,7 @@ if (s = selection.toString()) { selectionID = (_ref = $.x('preceding::input[@type="checkbox"][1]', selection.anchorNode)) != null ? _ref.name : void 0; if (selectionID === id) { + s = s.replace(/\n/g, '\n>'); text += ">" + s + "\n"; } } diff --git a/changelog b/changelog index f81eebade..ad2702f1b 100644 --- a/changelog +++ b/changelog @@ -1,6 +1,7 @@ github - mayhem: - Make updater's settings dynamic + - Multi-line quoting - fix remember updater's interval settings - fix wrong keybind input in options - fix time preview diff --git a/script.coffee b/script.coffee index 914bd8dd3..648dff99e 100644 --- a/script.coffee +++ b/script.coffee @@ -1039,6 +1039,7 @@ qr = if s = selection.toString() selectionID = $.x('preceding::input[@type="checkbox"][1]', selection.anchorNode)?.name if selectionID == id + s = s.replace /\n/g, '\n>' text += ">#{s}\n" ta = $ 'textarea', qr.el