summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Hallgren <th-github@altocumulus.org>2019-01-23 02:45:23 +0100
committerThomas Hallgren <th-github@altocumulus.org>2019-01-23 02:45:23 +0100
commitfc5c2b5a22f66912c1e5dab97a35c2f229093255 (patch)
tree91cec11befd1620826515136fe87e8fb57b1ae2b
parente4abff772556ebee68a7e3b2cbe4fd413a5e845e (diff)
PGF.Haskell.fromStr: fix double spaces caused by empty tokens
-rw-r--r--src/runtime/haskell/PGF/Haskell.hs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/runtime/haskell/PGF/Haskell.hs b/src/runtime/haskell/PGF/Haskell.hs
index 87cecc5d4..8b99a61e1 100644
--- a/src/runtime/haskell/PGF/Haskell.hs
+++ b/src/runtime/haskell/PGF/Haskell.hs
@@ -33,6 +33,7 @@ fromStr = from False id
from space cap ts =
case ts of
[] -> []
+ TK "":ts -> from space cap ts
TK s:ts -> put s++from True cap ts
BIND:ts -> from False cap ts
SOFT_BIND:ts -> from False cap ts