mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-05 04:03:22 +03:00
Merge topic 'vs-indentfix'
b82ad18fe0 cmVisualStudio10TargetGenerator: fix indentation
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !1868
This commit is contained in:
commit
f5f992b6f0
1 file changed
+3
@@ -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";
|
||||
|
||||
Reference in new issue
Block a user