spec/spec_helper.rb in inky-rb-1.3.8.0 vs spec/spec_helper.rb in inky-rb-1.4.2.0
- old
+ new
@@ -9,10 +9,9 @@
.gsub(%r{<(\w+)([^>]*)>\n</\1>}, '<\1\2/>') # Auto close empty tags, e.g. <hr>\n</hr> => <hr/>
.gsub(/ "/, '"').gsub(/\=" /, '="') # Remove leading/trailing spaces inside attributes
.gsub(/ </, '<').gsub(/> /, '>') # Remove leading/trailing spaces inside tags
.gsub(' data-parsed=""', '') # Don't consider this known inky-node artefact
.gsub(' data-parsed>', '>') # Ditto
- .gsub(' ', ' ') # These are the same entity...
.gsub(/(align="[^"]+") (class="[^"]+")/, '\2 \1') # Tweak order to match inky-node on container
.gsub(/class\="([^"]+)"/) do # Sort class names
classes = $1.split(' ').sort.join(' ')
%{class="#{classes}"}
end