Skip to content

Commit

Permalink
fix html pretty tests
Browse files Browse the repository at this point in the history
  • Loading branch information
minad committed Sep 9, 2014
1 parent eb91941 commit bc0866b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/html/test_pretty.rb
Expand Up @@ -22,7 +22,7 @@
[:static, "\n text"],
[:multi,
[:code, "_temple_html_pretty2 = (code).to_s"],
[:code, "if _temple_html_pretty1 !~ _temple_html_pretty2; _temple_html_pretty2 = _temple_html_pretty2.gsub(\"\n\", \"\\n \"); end"],
[:code, "if _temple_html_pretty1 !~ _temple_html_pretty2; _temple_html_pretty2 = _temple_html_pretty2.gsub(\"\\n\", \"\\n \"); end"],
[:dynamic, "_temple_html_pretty2"]]],
[:static, "\n </p>"]],
[:static, "\n</div>"]]]
Expand Down Expand Up @@ -54,7 +54,7 @@
[:code, "_temple_html_pretty1 = /<code|<pre|<textarea/"],
[:multi,
[:code, "_temple_html_pretty2 = (\"text<\".html_safe).to_s"],
[:code, "if _temple_html_pretty1 !~ _temple_html_pretty2; _temple_html_pretty3 = _temple_html_pretty2.html_safe?; _temple_html_pretty2 = _temple_html_pretty2.gsub(\"\n\", \"\\n\"); _temple_html_pretty2 = _temple_html_pretty2.html_safe if _temple_html_pretty3; end"],
[:code, "if _temple_html_pretty1 !~ _temple_html_pretty2; _temple_html_pretty3 = _temple_html_pretty2.html_safe?; _temple_html_pretty2 = _temple_html_pretty2.gsub(\"\\n\", \"\\n\"); _temple_html_pretty2 = _temple_html_pretty2.html_safe if _temple_html_pretty3; end"],
[:dynamic, "_temple_html_pretty2"]]]
end
end
Expand Down

0 comments on commit bc0866b

Please sign in to comment.