Fix truncation of generated templates
0.8.2