Skip to content

VS: Use newline for empty DebugInformationFormat tags

Robert Dailey requested to merge rcdailey/cmake:debug-info-format into master

Previously, code wrote out empty tags for <DebugInformationFormat> like so:

<DebugInformationFormat></DebugInformationFormat>

This gets corrected by Visual Studio 2017 when saving the solution. The correction appears as:

<DebugInformationFormat>
</DebugInformationFormat>

In the spirit of keeping the XML structure as close to what Visual Studio expects as possible, a newline is inserted after the opening tag in the empty case.

Topic-rename: vcxproj-DebugInformationFormat-newline

Edited by Brad King

Merge request reports