From f84611f558c9d3ba5562e4d120346a6fba391797 Mon Sep 17 00:00:00 2001 From: Mojca Lorber Date: Wed, 22 Feb 2017 15:51:26 +0100 Subject: [PATCH] fix report - checklist items are in separate row than checkboxes --- app/helpers/input_sanitize_helper.rb | 4 ++-- app/views/reports/elements/_step_checklist_element.html.erb | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/helpers/input_sanitize_helper.rb b/app/helpers/input_sanitize_helper.rb index 35b56be3d..1a4d1b19d 100644 --- a/app/helpers/input_sanitize_helper.rb +++ b/app/helpers/input_sanitize_helper.rb @@ -15,9 +15,9 @@ module InputSanitizeHelper ERB::Util.html_escape(text) end - def custom_auto_link(text, simple_format = true, org = nil) + def custom_auto_link(text, simple_format = true, org = nil, wrapper_tag = {}) text = if simple_format - simple_format(sanitize_input(text)) + simple_format(sanitize_input(text), {}, wrapper_tag) else sanitize_input(text) end diff --git a/app/views/reports/elements/_step_checklist_element.html.erb b/app/views/reports/elements/_step_checklist_element.html.erb index d674fd35e..1c24cdecf 100644 --- a/app/views/reports/elements/_step_checklist_element.html.erb +++ b/app/views/reports/elements/_step_checklist_element.html.erb @@ -24,7 +24,7 @@
  • /> - <%= custom_auto_link(item.text) %> + <%= custom_auto_link(item.text, true, nil, {wrapper_tag: "span"}) %>
  • <% end %>