I frequently use <% “foobar” -%> syntax (note the closing -%>) to
prevent extra newlines from being rendered to the page when my template
files have logic. This works fine in ruby 1.8.4 (2005-12-24)
[i686-linux]. But in ruby 1.8.5 (2006-08-25) [i386-mswin32] this causes
a “parse error, unexpected $, expecting kEND” error. Was the ability to
use " -%>" to prevent extra newlines removed from version 1.8.4 to
1.8.5? Or is this a Linux/Windows issue?
Has anyone else run into this? I would just like to know so I can get
out of the habbit of using “-%>” if it is no longer supported.