Unexpected space inserted in class attribute

Fixes #325