Closed Bug 1397234 Opened 7 years ago Closed 7 years ago

Parser: Allow blank lines before attributes, tags and multiline patterns

Categories

(L20n :: Python Library, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: stas, Assigned: zbraniecki)

References

Details

Currently, none of the following messages parses correctly:

foo =


    Mutliline Foo Value


bar1


    .attr = Attr


bar2


    .attr1 = Attr1


    .attr2 = Attr2



bar3 =


    Multiline Bar Value


    .attr = Attr


bar4


    .attr =


        Multiline Attr Value


qux1 = Qux


    #tag


qux2 = Qux


    #tag1


    #tag2
No longer blocks: 1396580
taking.

First impression after trying to write it is that it ain't gonna be trivial and it is going to have performance penalty.
Assignee: nobody → gandalf
Status: NEW → ASSIGNED
Blocks: 1398723
Fixed in https://github.com/projectfluent/python-fluent/commit/006140795d0b0f30e7332ec628f70a01b57fec7b
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
I filed bug 1406880 to discuss the change in how multiine Pattern spans are calculated after this change.
You need to log in before you can comment on or make changes to this bug.