Closed Bug 1396781 Opened 7 years ago Closed 6 years ago

If there's a SelectExpression in the value, the Serializer should default to multiline formatting

Categories

(L20n :: Python Library, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1441105

People

(Reporter: stas, Unassigned)

Details

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))
No longer blocks: 1396580
I think we fixed this as part of bug 1441105.
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.