Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Newline after evaluation block is ignored #10

Closed
viraptor opened this issue May 31, 2018 · 3 comments
Closed

Newline after evaluation block is ignored #10

viraptor opened this issue May 31, 2018 · 3 comments

Comments

@viraptor
Copy link

With a template like:

abc
<%= 'foo' %>
def

I expected result

abc
foo
def

with erbse 0.1.3, I end up with a missing newline:

irb(main):004:0> puts Erbse::Engine.new.call("abc\n<%= 'foo' %>\ndef")
_buf = []; _buf << ("abc\n".freeze); _buf << ( 'foo' );
; _buf << ("def".freeze); _buf = _buf.join("".freeze)

# _buf == "abc\nfoodef"
@apotonick
Copy link
Owner

Yeah, I am having the same problem sometimes (especially shitty when you have a stack trace). PR welcome, I don't have time for Erbse anymore! 💟

@lcjury
Copy link

lcjury commented Jan 28, 2020

@apotonick any plans to merge #12 ??

@apotonick
Copy link
Owner

Fixed by @lcjury in 0.1.4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants