fixed class map generator when using a heredoc with spaces
Merge pull request #2945 from fabpot/classmap-hotfix

fixed class map generator when using a heredoc with spaces