diff --git a/app/models/answer.rb b/app/models/answer.rb
index a2a625f..225a782 100644
--- a/app/models/answer.rb
+++ b/app/models/answer.rb
@@ -87,6 +87,18 @@
return notes.select{ |n| n.archived.blank? }.sort!{ |x,y| y.updated_at <=> x.updated_at }
end
+ ##
+ # Returns True if answer text is blank, false otherwise
+ # specificly we want to remove empty hml tags and check
+ #
+ # @return [Boolean] is the answer's text blank
+ def is_blank?
+ if self.text.present?
+ return self.text.gsub(/<\/?p>/, '').gsub(/
/, '').chomp.blank?
+ end
+ # no text so blank
+ return True
+ end
##
# Returns the parsed JSON hash for the current answer object
diff --git a/app/views/shared/export/_plan.erb b/app/views/shared/export/_plan.erb
index fb9acb4..cf0346e 100644
--- a/app/views/shared/export/_plan.erb
+++ b/app/views/shared/export/_plan.erb
@@ -19,7 +19,7 @@
<%= _('Question not answered.') -%>
- <% elsif !blank %> + <% else %> + <%# case where Question has options %> <% if options.present?%><%= raw ah['text'] %>
- <% else %> + <%# case for displaying comments OR text %> + <% elsif !blank %><%= raw answer.text %>
<% end %> <% end %>