fixed hang bug.  emit now ignores all-white-space tokens - still a bug