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

prevent duplicating newlines in ERB outupt. #116

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

arBmind
Copy link

@arBmind arBmind commented Aug 28, 2017

  • it destroys preformatted text

* it destroys preformatted text
@kbrock
Copy link
Contributor

kbrock commented Sep 7, 2018

are there any tests for this?

@arBmind
Copy link
Author

arBmind commented Sep 9, 2018

I ran into this with our modified version of comfortable-mexican-sofa.
hicknhack-software/comfortable-mexican-sofa@61d4397 (This adds this PR as a workaround.)

There is only one test for the ERB generator. I have now added a unit test.

I think it would be wise to add an integration test. But the ERB parser right now, does not generate any newline expressions. SLIM generates a lot of them.

It seems there are not many use cases for the ERB generator. But if this feature is here, it should work properly.

Copy link

@pboling pboling left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

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

Successfully merging this pull request may close these issues.

3 participants