diff --git a/app/views/shared/export/_plan_txt.erb b/app/views/shared/export/_plan_txt.erb index 6c1ee28..ff2891e 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" if question[:text].present? && question[:text][0].present? +<%= question[:text][0].gsub(/(\s||<\/td>| )*(<\/tr>|)/,"") + "\n" if question[:text].present? && question[:text][0].present? %> <% end %> <% end %> <% answer = @plan.answer(question[:id], false) %>