-
-
Save DylanArnold/d75c8ad321239decb26b841971f1a74e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
object Example { | |
// Note the extra brace around each element | |
@dom def ok = { | |
<div> | |
{ | |
<div> | |
{ | |
<div> | |
{ | |
val foo = "ok" | |
<div></div> | |
} | |
</div> | |
} | |
</div> | |
} | |
</div> | |
} | |
// Note no extra brace around each element, scalafmt is only happy if the inside block is too far left | |
@dom def notOk = { | |
<div> | |
<div> | |
<div> | |
{ | |
val foo = "this is too far left" | |
<div></div> | |
} | |
</div> | |
</div> | |
</div> | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment