cmVisualStudio10TargetGenerator: fix indentation

Added printing empty string to get the right indentation.
This commit is contained in:
Vitaly Stakhovsky
2018-03-19 09:56:44 -04:00
parent d8826406aa
commit b82ad18fe0

View File

@@ -29,6 +29,7 @@ struct cmVisualStudio10TargetGenerator::Elem
, Indent(i)
{
}
Elem(const Elem&) = delete;
Elem(Elem& par)
: S(par.S)
, Indent(par.Indent + 1)
@@ -47,6 +48,8 @@ struct cmVisualStudio10TargetGenerator::Elem
if (HasElements) {
S.fill(' ');
S.width(Indent * 2);
// write an empty string to get the fill level indent to print
S << "";
S << "</" << tag << ">\n";
} else {
S << " />\n";