Process nobr passages as if they don't have line breaks #90
Labels
bug
Something isn't working
enhancement
New feature or request
sugarcube-2
Relating to the SugarCube-2 Story Format
Currently we seem to ignore the
nobr
tag on passages, and so we can produce incorrect errors on code which uses these.It would be better if we process them closer to how sugarcube-2 process them.
There's two methods that we could use:
The second option is the preferred option, though it does complicate things and s potentially non-trivial to implement (but certainly feasible) and could have some mild performance negative on non-nobr use-cases.
The issue at the moment is that we aren't doing per-passage parsing, and this is per-passage.
We would also probably want to handle parsing the content of a
nobr
tag, since that has the same implications.We would also want to provide a global option, since one can set nobr globally on a project.
The text was updated successfully, but these errors were encountered: