summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2018-03-20 13:18:45 (GMT)
committerKitware Robot <kwrobot@kitware.com>2018-03-20 13:19:26 (GMT)
commitf5f992b6f0dbd5451dbdf1cd1fd079fbced7afb3 (patch)
treec7b8be98d078aa144ce02be036fdd67c6d733b46 /Source
parent5831b6a2aec74cd9d1d10b1d047da8fa0411c828 (diff)
parentb82ad18fe0c94e2869d1fb1f413502383db9f7e9 (diff)
downloadCMake-f5f992b6f0dbd5451dbdf1cd1fd079fbced7afb3.zip
CMake-f5f992b6f0dbd5451dbdf1cd1fd079fbced7afb3.tar.gz
CMake-f5f992b6f0dbd5451dbdf1cd1fd079fbced7afb3.tar.bz2
Merge topic 'vs-indentfix'
b82ad18fe0 cmVisualStudio10TargetGenerator: fix indentation Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1868
Diffstat (limited to 'Source')
-rw-r--r--Source/cmVisualStudio10TargetGenerator.cxx3
1 files changed, 3 insertions, 0 deletions
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 << "</" << tag << ">\n";
} else {
S << " />\n";