Empty line in a text file enum produces unexpected behavior
Since I use C#'s StringWriter.WriteLine to produce my Enum definitions for LDtk, they end up having an empty last line.
LDtk does not support this, and end up having an empty enum last just called "Enum" with no values. No biggie, I guess I'll have to get rid of the last new line in the file.
But when I produced an enum definition file without that empty last line, LDtk would crash on attempting to open the ldtk file. I had to put the empty line back in, open the ldtk file, remove the enum reference entirely, close LDtk, remove the unintended new line, then finally import it again.
I need to make an addition. With the empty line gone, my last enum entry in the file always get two identical entries in LDtk, even though I only defined it once. I'm attaching the enum file.