RDunkley / XML-To-Data-Class

Tool to Generate C# custom data classes from an XML file.
Apache License 2.0
0 stars 0 forks source link

The code sometimes generates spaces and sometimes doesn't #36

Closed RDunkley closed 7 years ago

RDunkley commented 7 years ago

The auto-generated code will sometimes add spaces after if statements (Ex: "if (node") and catch (Ex: "catch (Exc") and sometimes it won't. It seems like it should be consistent.

Spaces are added at: ElementInfo - 606 BooleanType.cs - 350, 393, 401, 412, 420, 431, 439 DateTimeType.cs - 186 EnumType.cs - 330, 366 FixedEnumType.cs - 198 FloatingType.cs - 383, 435, 449, 451, 464, 466, 480, 482, 508, 512 IntegralType.cs - 506, 558, 573, 575, 590, 592, 621, 625 IPAddressType.cs - 116 MacAddressType.cs - 255, 291, 303, 314, 327 StringType.cs - 138, 153, 159, 164 TimeSpanType.cs - 157 VersionType.cs - 196

RDunkley commented 7 years ago

This needs to be consistent, but part of the problem is Visual Studio 2015 now defaults with the space. Not sure if I want to go against the grain long term or not. I'll have to mull this over a bit.