Broken operator rendering
demensky opened this issue · 5 comments
demensky commented
Code example:
-1-2-3-4-5-|
> tmp(()=>`--|`)
The operator is rendered empty (in SVG also):
Code example (spaces around =>):
-1-2-3-4-5-|
> tmp(()=>`--|`)
SVG becomes invalid:
Can be reproduced at https://swirly.dev/.
timdp commented
Odd, it works for me.
is a non-breaking space. Swirly replaces regular spaces with non-breaking ones so spaces around observables don't get collapsed. However, it should insert the literal character rather than the named entity code.
This might be browser-specific. I'll experiment with it tomorrow. I might use <pre> instead, so the non-breaking spaces aren't necessary.
demensky commented
I described incorrectly. This problem appears while downloading.
timdp commented
Ah, interesting. I'll look into it.
demensky commented
2022-07-01.00.25.42.mov
timdp commented
This should now be fixed on swirly.dev!

