diff --git a/app/controllers/issues_controller.rb b/app/controllers/issues_controller.rb index 682a0cc6b..c042a80ef 100644 --- a/app/controllers/issues_controller.rb +++ b/app/controllers/issues_controller.rb @@ -217,10 +217,10 @@ class IssuesController < ApplicationController user = @issue.author text = @issue.description end - content = "#{ll(Setting.default_language, :text_user_wrote, user)}\n> " - content << text.to_s.strip.gsub(%r{
((.|\s)*?)}m, '[...]').gsub("\n", "\n> ") + "\n\n" + content = "#{ll(Setting.default_language, :text_user_wrote, user)}\\n> " + content << text.to_s.strip.gsub(%r{
((.|\s)*?)}m, '[...]').gsub('"', '\"').gsub(/(\r?\n|\r\n?)/, "\\n> ") + "\\n\\n" render(:update) { |page| - page.replace_html "notes", content + page.<< "$('notes').value = \"#{content}\";" page.show 'update' page << "Form.Element.focus('notes');" page << "Element.scrollTo('update');"