Hello there,
In my built directory I have a json file that is the result of MM processing an erb one.
Everything works fine, but the output contains lots of additional spaces and new lines, which I suspect it is due to the many tag opening and closing.
E.g. <% faqpage.each do |fpage| %>
<% if article.data.SearchFromSummary == true %>
<% sum = Nokogiri::HTML(article.summary).text.squeeze("\n").delete("\n") %>
<% else %>
<% sum = article.data.description %>
<% end %>
I was wondering if there is any way to suppress unwanted spaces.
Thanks
Andrea