From fae2367fb28a503fb36d13dfc94a165a3765a66f Mon Sep 17 00:00:00 2001 From: Henry Weller Date: Wed, 6 Sep 2023 12:03:48 +0100 Subject: [PATCH] foamToC: Ensure there is a space after long entry names when printing tables --- .../utilities/miscellaneous/foamToC/foamToC.C | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/applications/utilities/miscellaneous/foamToC/foamToC.C b/applications/utilities/miscellaneous/foamToC/foamToC.C index 668ad4400a..ebf6101aa2 100644 --- a/applications/utilities/miscellaneous/foamToC/foamToC.C +++ b/applications/utilities/miscellaneous/foamToC/foamToC.C @@ -195,8 +195,9 @@ void printToC(const word& tableName) forAll(toc, i) { - Info<< " " << setf(ios_base::left) << setw(40) << toc[i] - << debug::runTimeSelectionToC[tableName].second()[toc[i]] + Info<< " " << setf(ios_base::left) + << setw(39) << toc[i] + << ' ' << debug::runTimeSelectionToC[tableName].second()[toc[i]] << endl; } @@ -474,8 +475,9 @@ int main(int argc, char *argv[]) && toc[i] == baseTypeNameTables[toc[i]].begin().key() ) { - Info<< " " << setf(ios_base::left) << setw(40) - << toc[i] << baseTypeNameTables[toc[i]].begin()() + Info<< " " << setf(ios_base::left) + << setw(39) << toc[i] + << ' ' << baseTypeNameTables[toc[i]].begin()() << endl; } else @@ -489,8 +491,9 @@ int main(int argc, char *argv[]) forAll(tocc, j) { Info<< " " - << setf(ios_base::left) << setw(40) << tocc[j] - << baseTypeNameTables[toc[i]][tocc[j]] + << setf(ios_base::left) + << setw(39) << tocc[j] + << ' ' << baseTypeNameTables[toc[i]][tocc[j]] << endl; } }