lighttable

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


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


Solution

  • 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