diff --git a/app/views/shared/export/_plan.erb b/app/views/shared/export/_plan.erb index 2f74d16..ca21594 100644 --- a/app/views/shared/export/_plan.erb +++ b/app/views/shared/export/_plan.erb @@ -34,7 +34,7 @@ <% end %> <% else %> -

<%= raw question[:text][0].gsub(/(\s||<\/td>| )*(<\/tr>|)/,"") if question[:text].present? && question[:text][0].present? %>

+

<%= raw question[:text][0].gsub(/(\s||<\/td>| )*(<\/tr>|)/,"") if question[:text].present? && question[:text][0].present? %>

<% end %>
<% end %> diff --git a/app/views/shared/export/_plan_txt.erb b/app/views/shared/export/_plan_txt.erb index 76c5d87..edcfc19 100644 --- a/app/views/shared/export/_plan_txt.erb +++ b/app/views/shared/export/_plan_txt.erb @@ -35,7 +35,7 @@ <%= txt + "\n" %> <% end %> <% else %> -<%= question[:text][0].gsub(/(\s||<\/td>| )*(<\/tr>|)/,"") + "\n" %> +<%= question[:text][0].gsub(/(\s||<\/td>| )*(<\/tr>|)/,"") + "\n" if question[:text].present? && question[:text][0].present? <% end %> <% end %> <% answer = @plan.answer(question[:id], false) %> @@ -48,7 +48,7 @@ <%= " #{opt.text}\n" %> <% end %> <% else %> -<%= " #{answer.text.gsub(/<\/?p>/, '').gsub(//, '').chomp}\n\n" %> +<%= " #{answer.text.gsub(/<\/?p>/, '').gsub(//, '').chomp}\n\n" if answer.text.present? %> <% end %> <% end %> <% end %>