From b82ad18fe0c94e2869d1fb1f413502383db9f7e9 Mon Sep 17 00:00:00 2001 From: Vitaly Stakhovsky Date: Mon, 19 Mar 2018 09:56:44 -0400 Subject: cmVisualStudio10TargetGenerator: fix indentation Added printing empty string to get the right indentation. --- Source/cmVisualStudio10TargetGenerator.cxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Source/cmVisualStudio10TargetGenerator.cxx b/Source/cmVisualStudio10TargetGenerator.cxx index 87d3c78..7e6e803 100644 --- a/Source/cmVisualStudio10TargetGenerator.cxx +++ b/Source/cmVisualStudio10TargetGenerator.cxx @@ -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 << "\n"; } else { S << " />\n"; -- cgit v0.12