From 9e8067ca4bb9e0d21a397f681fce376e9b28ef92 Mon Sep 17 00:00:00 2001 From: Max Kanat-Alexander Date: Tue, 26 Oct 2010 15:48:33 -0700 Subject: Bug 551468: Stop word-wrapping comments on the server r=glob, a=mkanat --- template/en/default/bug/edit.html.tmpl | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'template/en/default/bug/edit.html.tmpl') diff --git a/template/en/default/bug/edit.html.tmpl b/template/en/default/bug/edit.html.tmpl index 9c951fb2e..2a9a0776e 100644 --- a/template/en/default/bug/edit.html.tmpl +++ b/template/en/default/bug/edit.html.tmpl @@ -52,17 +52,7 @@ /* pre id="comment_name_N" */ var text_elem = document.getElementById('comment_text_'+id); var text = getText(text_elem); - - /* make sure we split on all newlines -- IE or Moz use \r and \n - * respectively. - */ - text = text.split(/\r|\n/); - - for (var i=0; i < text.length; i++) { - replytext += "> " + text[i] + "\n"; - } - - replytext = prefix + replytext + "\n"; + replytext = prefix + wrapReplyText(text); [% ELSIF user.settings.quote_replies.value == 'simple_reply' %] replytext = prefix; [% END %] -- cgit v1.2.3-24-g4f1b