asciimath / asciimathml

A new home for asciimathml
http://asciimath.org/
MIT License
958 stars 184 forks source link

Test environment 'collapses' multiple kinds of whitespace into one #125

Closed kozross closed 3 years ago

kozross commented 3 years ago

The test environment responds to any kind of whitespace being entered (and indeed, any amount of consecutive whitespace) by converting it to a single space. This is confusing, not least of all because it doesn't demonstrate how AsciiMath responds to multiple consecutive spaces, for example. Is this intentional, and if so, why?

drlippman commented 3 years ago

AsciiMath treats multiple consecutive spaces as if there's only one, so it sounds like it's behaving exactly right. In AsciiMath, spaces only serve to separate tokens, nothing else.