Fix #1276: Inconsistent whitespace in code templates