Closed
Bug 1405645
Opened 8 years ago
Closed 8 years ago
Runtime parser doesn't require indentation for attributes and tags
Categories
(L20n :: JS Library, enhancement)
L20n
JS Library
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: stas, Assigned: zbraniecki)
References
Details
Given the following FTL:
foo = Foo
.attr = Foo Attr
bar = Bar
.attr1 = Bar Attr 1
.attr2 = Bar Attr 2
baz = Baz
#tag
qux = Qux
#tag1
#tag2
The output of ./tools/parse.js -r currently is:
{
"foo": {
"val": "Foo",
"attrs": {
"attr": "Foo Attr"
}
},
"bar": {
"val": "Bar",
"attrs": {
"attr1": "Bar Attr 1",
"attr2": "Bar Attr 2"
}
},
"baz": {
"val": "Baz",
"tags": [
"tag"
]
},
"qux": {
"val": "Qux",
"tags": [
"tag1",
"tag2"
]
}
}
The output should be:
{
"foo": {
"val": "Foo"
},
"bar": {
"val": "Bar",
"attrs": {
"attr1": "Bar Attr 1"
}
},
"baz": {
"val": "Baz"
},
"qux": {
"val": "Qux",
"tags": [
"tag1"
]
}
}
| Assignee | ||
Updated•8 years ago
|
Assignee: nobody → gandalf
Status: NEW → ASSIGNED
| Assignee | ||
Comment 1•8 years ago
|
||
| Assignee | ||
Comment 2•8 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•