Fix throw exception on emit file

Fix issue #852
try to wrap comments at 100 columns.