Commit 7f2104c9 authored by Henry Weller's avatar Henry Weller
Browse files

foamDictionary: Removed unnecessary spaces and blank lines from output

Resolves bug-report https://bugs.openfoam.org/view.php?id=2422
parent f8e9a0db
......@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2016 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2016-2017 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
......@@ -396,7 +396,7 @@ int main(int argc, char *argv[])
);
if (entPtr)
{
Info<< *entPtr << endl;
Info<< *entPtr;
}
}
else if (args.optionFound("remove"))
......@@ -467,7 +467,11 @@ int main(int argc, char *argv[])
const tokenList& tokens = entPtr->stream();
forAll(tokens, i)
{
Info<< tokens[i] << token::SPACE;
Info<< tokens[i];
if (i < tokens.size() - 1)
{
Info<< token::SPACE;
}
}
Info<< endl;
}
......@@ -478,7 +482,7 @@ int main(int argc, char *argv[])
}
else
{
Info<< *entPtr << endl;
Info<< *entPtr;
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment