"hello there" Actual behavior: (str "hello "" /> "hello there" Actual behavior: (str "hello "" /> "hello there" Actual behavior: (str "hello ""/>

Why are consecutive spaces in the result of an evaluated expression collapsed in Light Table?

41 Views Asked by At

Light Table appears to collapse multiple consecutive spaces.

Expected behavior: (str "hello   " "there") => "hello   there"
Actual behavior:   (str "hello   " "there") => "hello there"

enter image description here

1

There are 1 best solutions below

0
amalloy On BEST ANSWER

I assume this is "just" a display issue related to light table's HTML-based platform. You can confirm this by evaluating these expressions:

(= "hello     there" (str "hello     " "there")) ; true
(= "hello there"     (str "hello     " "there")) ; false