I have a custom template that starts
#region Names
public static <[If IsSubType]>new <[EndIf]><[If UsePartialClasses]>partial <[EndIf]>class Names
{
But the generated code
public static partial class Names
{
It would seem that the first line is appended directly after the REGION_END comment rather than the next line.