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

Formatter has become unhappy with ternary yields #60

Open
elliotcm opened this issue Jul 26, 2024 · 0 comments
Open

Formatter has become unhappy with ternary yields #60

elliotcm opened this issue Jul 26, 2024 · 0 comments

Comments

@elliotcm
Copy link

Hello!

Similar to the other yield issue that was fixed in 0.7.3, it seems that the formatter is not happy with this in a layout:

<div id="main" class="h-full"><%= content_for?(:content) ? yield(:content) : yield %></div>

It's still unhappy even if the ERB part is moved to its own line, but works OK when turned into a full if-else statement, so that's an OK workaround for us for now.

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

1 participant