newline-handling nit in Sinatra's erb

28 views
Skip to first unread message

Rich Morin

unread,
Jan 2, 2017, 6:38:19 AM1/2/17
to sinatrarb
The Embedded Ruby implementation for Sinatra (1.4.7) removes (some) newlines. Basically, if an interpolated string is on a line by itself (no text either before or after), the newline goes away.  The Ruby (2.0.0p481) ERB library does not exhibit this problem. Please see the gist (https://gist.github.com/RichMorin/055bb69484207885ab51e7cdd6ac44dd) for details.

-r

Rich Morin

unread,
Jan 2, 2017, 2:47:04 PM1/2/17
to sinatrarb
An issue (and a cogent, helpful) response to this issue are posted as:

-r
Reply all
Reply to author
Forward
0 new messages