foamDictionary: Removed unnecessary spaces and blank lines from output

Resolves bug-report https://bugs.openfoam.org/view.php?id=2422
This commit is contained in:
Henry Weller
2017-01-05 20:19:30 +00:00
parent f8e9a0dbf5
commit 7f2104c9a7

View File

@ -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;
}
}
}