VC2012 project exporter minor issue - self closing tag


#1

After resaving a project, VS2012 puts a blank into the self-closing tag

it seems this also XML Standard, you might need to change the xml-generator

http://www.w3schools.com/xml/xml_elements.asp

<ClCompile Include="..\..\Source\PluginEditor.cpp"/>

<ClCompile Include="..\..\Source\PluginEditor.cpp" />

#2

It's probably a good thing to add the space for readability, but according to this StackOverflow post, the space before slash is a bit of an old thing to do.

http://stackoverflow.com/questions/462741/space-before-closing-slash

http://www.w3.org/TR/xhtml1/#guidelines


#3

ah okay, but its also useful because of version control (svn/git)


#4

Yeah, it would definitely reduce the diffs!


#5

Could be done with a replace ("/>", " />") operation after the XML is generated, I guess.. I don't think I'd want to burden the XML parser with generating that.