TernarySpaces - remove ugly loop
minor #516 TernarySpaces - remove ugly loop (keradus)

This PR was merged into the 1.0.x-dev branch.

Discussion
----------

TernarySpaces - remove ugly loop

Commits
-------

980c6e6 TernarySpaces - remove ugly loop