Fix ERB tags on non-printing lines in template