test/helper.rb in write_xlsx-0.78.0 vs test/helper.rb in write_xlsx-0.79.0
- old
+ new
@@ -130,10 +130,10 @@
# Remove printer specific settings from Worksheet pageSetup elements.
if exp_members[i].name =~ %r!xl/worksheets/sheet\d.xml!
exp_xml_str = exp_xml_str.
sub(/horizontalDpi="200" /, '').
sub(/verticalDpi="200" /, '').
- sub(/(<pageSetup.* )r:id="rId1"/, '\1').
+ sub(/(<pageSetup[^>]* )r:id="rId1"/, '\1').
sub(/ +\/>/, ' />')
end
# Remove Chart pageMargin dimensions which are almost always different.
if exp_members[i].name =~ %r!xl/charts/chart\d.xml!