Dumb auto-format

This commit is contained in:
Michael Miller 2019-09-26 16:25:43 -06:00
parent e3e4cac9c1
commit edabaa9447

View file

@ -114,8 +114,7 @@ module Spectator
let({{assignment.target}}) { {{assignment.value}} } let({{assignment.target}}) { {{assignment.value}} }
{% end %} {% end %}
{% {% # Trick to get the contents of the block as an array of nodes.
# Trick to get the contents of the block as an array of nodes.
# If there are multiple expressions/statements in the block, # If there are multiple expressions/statements in the block,
# then the body will be a `Expressions` type. # then the body will be a `Expressions` type.
# If there's only one expression, then the body is just that. # If there's only one expression, then the body is just that.
@ -127,8 +126,7 @@ module Spectator
else else
# Wrap the expression in an array. # Wrap the expression in an array.
[block.body] [block.body]
end end %}
%}
{% for item in body %} {% for item in body %}
# If the item starts with "it", then leave it as-is. # If the item starts with "it", then leave it as-is.