PGF.Haskell.fromStr: fix double spaces caused by empty tokens

This commit is contained in:
Thomas Hallgren
2019-01-23 02:45:23 +01:00
parent e4abff7725
commit fc5c2b5a22

View File

@@ -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