Immediate text inside list items isn't parsed
namuol opened this issue · comments
The following produces unexpected results:
/**
@list
@item val1
text 1
@item val2
text 2
*/
Expected results:
{
"list": {
"item": [
{
"!value": "val1",
"!text": "text 1"
},
{
"!value": "val2",
"!text": "text 2"
}
]
}
}
Actual results:
{
"list": {
"item": [
{
"!value": "val1",
"!text": "text 1"
},
"val2"
]
}
}
Note: Placing a tag before the text 2
piece yields correct results; that is, this only happens in the case where the second @item
is immediately followed by a text block. Furthermore, a value must be specified as well.
These all behave as expected:
/**
@list
@item val1
text 1
@item
text 2
*/
/**
@list
@item val1
text 1
@item val2
@tag
text 2
*/
Fixed in 0.4.3.