Closed ghost closed 6 years ago
That's how HTML works, unfortunately. I suppose it should be wrapped in a <pre>
block instead of <div>
to get proper handling of whitespace.
Adding a white-space: pre
CSS attribute could also work.
I spent an unholy amount of time trying to get my https://www.hackerrank.com/challenges/staircase/problem solution to work before I realized this bug was to blame. Definitely worth looking into.
Ah, that CSS trick would be even better. I have a major update to ScalaFiddle coming soon (updates to Scala 2.12) so I'll incorporate this there :)
Thanks! Looking forward to it.
Works now!
Yes it does! 🍾 💯