A space before a left square bracket is significant.

Fixes #1174.
Resolve spaces with generation rules.
Merge branch 'space_before_lsquare'