Details

Security

(public)

User Story

In the following test, the value is a Pattern with no new lines, so the serializer doesn't know that it should use multiline formatting.
Let's detect SelectExpressions in Patterns and default to multiline formatting for clarity. This will result in an opposite problem which I think is okay. I don't know however how to fix it in the future.
@unittest.skip("The serializer doesn't know it's multiline.")
def test_select_expression_in_simple_multiline(self):
input = """\
foo =
Foo { sel ->
*[a] A
[b] B
}
"""
self.assertEqual(pretty_ftl(input), dedent_ftl(input))