Closed
Description
As a result of the optimization applied in 2b93ed1, it became possible for the parser to assign an empty role to an inline phrase. If the role is empty (after removing leading and trailing spaces), it should not be assigned to the phrase.
Consider this example:
[,]#text#
A role should not be assigned to the inline phrase in this case.