diff --git a/applications/solvers/multiphase/multiphaseInterFoam/multiphaseMixture/alphaContactAngle/alphaContactAngleFvPatchScalarField.C b/applications/solvers/multiphase/multiphaseInterFoam/multiphaseMixture/alphaContactAngle/alphaContactAngleFvPatchScalarField.C
index 990db1cda316b5dbed4ff7281d81888d3e38a4d0..3cf76bab1b0002e7f7ae900eac6eeb6318d05616 100644
--- a/applications/solvers/multiphase/multiphaseInterFoam/multiphaseMixture/alphaContactAngle/alphaContactAngleFvPatchScalarField.C
+++ b/applications/solvers/multiphase/multiphaseInterFoam/multiphaseMixture/alphaContactAngle/alphaContactAngleFvPatchScalarField.C
@@ -50,7 +50,7 @@ Istream& operator>>
     alphaContactAngleFvPatchScalarField::interfaceThetaProps& tp
 )
 {
-    is >> tp.theta0_ >> tp.uTheta_ >> tp.thetaA_ >> tp.thetaR_;
+    is  >> tp.theta0_ >> tp.uTheta_ >> tp.thetaA_ >> tp.thetaR_;
     return is;
 }
 
diff --git a/applications/test/Dictionary/DictionaryTest.C b/applications/test/Dictionary/DictionaryTest.C
index 2844489f728e83338845e69f7b3b797f4ec85bf3..db4bc1ce75522731729637042effa0ce0e1252da 100644
--- a/applications/test/Dictionary/DictionaryTest.C
+++ b/applications/test/Dictionary/DictionaryTest.C
@@ -59,7 +59,7 @@ public:
 
     friend Ostream& operator<<(Ostream& os, const ent& e)
     {
-        os << e.keyword_ << ' ' << e.i_ << endl;
+        os  << e.keyword_ << ' ' << e.i_ << endl;
         return os;
     }
 };
@@ -88,7 +88,7 @@ public:
 
     friend Ostream& operator<<(Ostream& os, const Scalar& val)
     {
-        os << val.data_;
+        os  << val.data_;
         return os;
     }
 };
diff --git a/applications/test/Field/testField.H b/applications/test/Field/testField.H
index d43452fea7ea13c6b4157d989ca5baae96ddc8f1..530b66252584c4ec19cd1b98460e1e18a341111f 100644
--- a/applications/test/Field/testField.H
+++ b/applications/test/Field/testField.H
@@ -38,7 +38,7 @@ public:
 
     friend std::ostream& operator<<(std::ostream& os, const Vector<C>& v)
     {
-        os << v.X << '\t' << v.Y << '\n';
+        os  << v.X << '\t' << v.Y << '\n';
         return os;
     }
 };
diff --git a/applications/test/HashTable/hashTableTest.C b/applications/test/HashTable/hashTableTest.C
index a109f1d911113d064b61453d47dd408b3968b114..0cbd4ded85a7aac031c335d5f58bb5ad7597b6ae 100644
--- a/applications/test/HashTable/hashTableTest.C
+++ b/applications/test/HashTable/hashTableTest.C
@@ -89,7 +89,7 @@ int main()
 
     {
         OStringStream os;
-        os << table1;
+        os  << table1;
         HASHTABLE_CLASS<double> readTable(IStringStream(os.str())(), 100);
 
         Info<< "Istream constructor:" << readTable << endl;
diff --git a/applications/test/ISLList/ISLListTest.C b/applications/test/ISLList/ISLListTest.C
index 1991aa4f24f5ccc7989c2608c1f67d3c04505c54..7ebff5dbc0459f07c4345f515151ab8f23287208 100644
--- a/applications/test/ISLList/ISLListTest.C
+++ b/applications/test/ISLList/ISLListTest.C
@@ -54,7 +54,7 @@ public:
 
     friend Ostream& operator<<(Ostream& os, const Scalar& s)
     {
-        os << s.data_;
+        os  << s.data_;
         return os;
     }
 
diff --git a/applications/test/PtrList/PtrListTest.C b/applications/test/PtrList/PtrListTest.C
index ffcde48b96c82f1958518974ea2fb96c6eafbff9..d17f56885ae7b6375580b090f50dd4823fd4bd24 100644
--- a/applications/test/PtrList/PtrListTest.C
+++ b/applications/test/PtrList/PtrListTest.C
@@ -60,7 +60,7 @@ public:
 
     friend Ostream& operator<<(Ostream& os, const Scalar& val)
     {
-        os << val.data_;
+        os  << val.data_;
         return os;
     }
 };
diff --git a/applications/test/StaticHashTable/staticHashTableTest.C b/applications/test/StaticHashTable/staticHashTableTest.C
index 77a456f2ba3e4be8f270d4a08ced23bdf972be86..d51bf1f5d260cf58372def0c9965c0ce1c747872 100644
--- a/applications/test/StaticHashTable/staticHashTableTest.C
+++ b/applications/test/StaticHashTable/staticHashTableTest.C
@@ -83,7 +83,7 @@ int main()
 
     {
         OStringStream os;
-        os << table1;
+        os  << table1;
         HASHTABLE_CLASS<double> readTable(IStringStream(os.str())(), 100);
 
         Info<< "Istream constructor:" << readTable << endl;
diff --git a/applications/test/UDictionary/UDictionaryTest.C b/applications/test/UDictionary/UDictionaryTest.C
index 57fc55c0b3dd928dababe498a3acb1427758ade4..e884bcddd876277f2c41e41a1fa20a0c5eef06f8 100644
--- a/applications/test/UDictionary/UDictionaryTest.C
+++ b/applications/test/UDictionary/UDictionaryTest.C
@@ -56,7 +56,7 @@ public:
 
     friend Ostream& operator<<(Ostream& os, const ent& e)
     {
-        os << e.keyword_ << ' ' << e.i_ << endl;
+        os  << e.keyword_ << ' ' << e.i_ << endl;
         return os;
     }
 };
diff --git a/applications/test/primitivePatch/testPrimitivePatch.C b/applications/test/primitivePatch/testPrimitivePatch.C
index 37fd7b32eb01016ef268886f8675afb007c01918..e2336530e6c39fa20d6554eeaa8137491ea99e3f 100644
--- a/applications/test/primitivePatch/testPrimitivePatch.C
+++ b/applications/test/primitivePatch/testPrimitivePatch.C
@@ -47,8 +47,7 @@ void writeObj(Ostream& os,const pointField& points)
     {
         const point& pt = points[pointI];
 
-        os << "v " << pt.x() << ' ' << pt.y()
-            << ' ' << pt.z() << endl;
+        os  << "v " << pt.x() << ' ' << pt.y() << ' ' << pt.z() << endl;
     }
 }
 
diff --git a/applications/test/sha1/testSHA1.C b/applications/test/sha1/testSHA1.C
index 45fd3814b8cdf192cb202b3efa384346f44ea260..c3e368510894054cc6a80861124b66f05a71ec8b 100644
--- a/applications/test/sha1/testSHA1.C
+++ b/applications/test/sha1/testSHA1.C
@@ -92,14 +92,14 @@ int main(int argc, char * argv[])
     {
         OSHA1stream os;
 
-        os << str;
+        os  << str;
         Info<< os.digest() << endl;
 
-        os << str;
+        os  << str;
         Info<< os.digest() << endl;
 
         os.rewind();
-        os << "The quick brown fox jumps over the lazy dog";
+        os  << "The quick brown fox jumps over the lazy dog";
         Info<< os.digest() << endl;
 
     }
diff --git a/applications/utilities/mesh/conversion/cfx4ToFoam/block.C b/applications/utilities/mesh/conversion/cfx4ToFoam/block.C
index 906ebac9ec2498999802f3d8a40609186dc607cf..e61b80ce0871ef80310cbb970a1dd33146687f52 100644
--- a/applications/utilities/mesh/conversion/cfx4ToFoam/block.C
+++ b/applications/utilities/mesh/conversion/cfx4ToFoam/block.C
@@ -110,9 +110,9 @@ const labelListListList& block::boundaryPatches() const
 
 Ostream& operator<<(Ostream& os, const block& b)
 {
-    os << b.Vertices << nl
-       << b.Cells << nl
-       << b.BoundaryPatches << endl;
+    os  << b.Vertices << nl
+        << b.Cells << nl
+        << b.BoundaryPatches << endl;
 
     return os;
 }
diff --git a/applications/utilities/mesh/conversion/cfx4ToFoam/hexBlock.C b/applications/utilities/mesh/conversion/cfx4ToFoam/hexBlock.C
index e4dc4d82c586b5f1b261d28ea44975b1130d47cc..2bdc448ed4f805cff6003df6bfb46ec59b571558 100644
--- a/applications/utilities/mesh/conversion/cfx4ToFoam/hexBlock.C
+++ b/applications/utilities/mesh/conversion/cfx4ToFoam/hexBlock.C
@@ -57,7 +57,7 @@ void hexBlock::readPoints(Istream& is)
 {
     forAll(points_, i)
     {
-        is >> points_[i].x() >> points_[i].y() >> points_[i].z();
+        is  >> points_[i].x() >> points_[i].y() >> points_[i].z();
     }
 
     // Calculate the handedness of the block
diff --git a/applications/utilities/mesh/conversion/plot3dToFoam/hexBlock.C b/applications/utilities/mesh/conversion/plot3dToFoam/hexBlock.C
index 74543ed4c14ac33672be02a73b1cf71b31744292..e7ab90647a4637049f59870acc62275ec68c8f15 100644
--- a/applications/utilities/mesh/conversion/plot3dToFoam/hexBlock.C
+++ b/applications/utilities/mesh/conversion/plot3dToFoam/hexBlock.C
@@ -128,13 +128,13 @@ void hexBlock::readPoints
     Info<< "Reading " << nPoints << " x coordinates..." << endl;
     for (label i=0; i < nPoints; i++)
     {
-        is >> points_[i].x();
+        is  >> points_[i].x();
     }
 
     Info<< "Reading " << nPoints << " y coordinates..." << endl;
     for (label i=0; i < nPoints; i++)
     {
-        is >> points_[i].y();
+        is  >> points_[i].y();
     }
 
     if (twoDThicknes > 0)
@@ -156,7 +156,7 @@ void hexBlock::readPoints
         Info<< "Reading " << nPoints << " z coordinates..." << endl;
         for (label i=0; i < nPoints; i++)
         {
-            is >> points_[i].z();
+            is  >> points_[i].z();
         }
     }
 
@@ -166,7 +166,7 @@ void hexBlock::readPoints
         Info<< "Reading " << nPoints << " blanks..." << endl;
         for (label i=0; i < nPoints; i++)
         {
-            is >> iBlank;
+            is  >> iBlank;
         }
     }
 
diff --git a/applications/utilities/mesh/conversion/writeMeshObj/writeMeshObj.C b/applications/utilities/mesh/conversion/writeMeshObj/writeMeshObj.C
index d0e067a07094b82f30d0b9ce05d144e156beb81d..2d37090daa61b18648085f96bb68931031947088 100644
--- a/applications/utilities/mesh/conversion/writeMeshObj/writeMeshObj.C
+++ b/applications/utilities/mesh/conversion/writeMeshObj/writeMeshObj.C
@@ -51,7 +51,7 @@ using namespace Foam;
 
 void writeOBJ(const point& pt, Ostream& os)
 {
-    os << "v " << pt.x() << ' ' << pt.y() << ' ' << pt.z() << nl;
+    os  << "v " << pt.x() << ' ' << pt.y() << ' ' << pt.z() << nl;
 }
 
 // All edges of mesh
diff --git a/applications/utilities/mesh/generation/extrudeToRegionMesh/patchPointEdgeCirculator.C b/applications/utilities/mesh/generation/extrudeToRegionMesh/patchPointEdgeCirculator.C
index b91f06fe3fa1d0f86472a4722ee5a6035e2dd009..67db0ccbabdcd47cce23927cc2b584e5e1312627 100644
--- a/applications/utilities/mesh/generation/extrudeToRegionMesh/patchPointEdgeCirculator.C
+++ b/applications/utilities/mesh/generation/extrudeToRegionMesh/patchPointEdgeCirculator.C
@@ -58,7 +58,7 @@ Foam::Ostream& Foam::operator<<
 
     if (faceI != -1)
     {
-        os<< " fc:" << c.patch_.localFaces()[faceI].centre(pts);
+        os  << " fc:" << c.patch_.localFaces()[faceI].centre(pts);
     }
     return os;
 }
diff --git a/applications/utilities/mesh/manipulation/setSet/setSet.C b/applications/utilities/mesh/manipulation/setSet/setSet.C
index 97502371613ebe56c51f23e1a285c1a3ee731068..d8c216c662b83921e59f18255e1756398ceb804d 100644
--- a/applications/utilities/mesh/manipulation/setSet/setSet.C
+++ b/applications/utilities/mesh/manipulation/setSet/setSet.C
@@ -974,7 +974,7 @@ int main(int argc, char *argv[])
             IStringStream is(rawLine + ' ');
 
             // Type: cellSet, faceSet, pointSet, faceZoneSet
-            is >> setType;
+            is  >> setType;
 
             stat = parseType(runTime, mesh, setType, is);
 
diff --git a/applications/utilities/mesh/manipulation/setSet/writeFuns.C b/applications/utilities/mesh/manipulation/setSet/writeFuns.C
index e7a67bc09bbc5af15674f8afed2f4743c8d245e6..d347bcc7f44d7f2e77abe1c510c40a78cdd20bc3 100644
--- a/applications/utilities/mesh/manipulation/setSet/writeFuns.C
+++ b/applications/utilities/mesh/manipulation/setSet/writeFuns.C
@@ -85,20 +85,20 @@ void Foam::writeFuns::write
             fField.size()*sizeof(float)
         );
 
-        os << std::endl;
+        os  << std::endl;
     }
     else
     {
         forAll(fField, i)
         {
-            os << fField[i] << ' ';
+            os  << fField[i] << ' ';
 
             if (i > 0 && (i % 10) == 0)
             {
-                os << std::endl;
+                os  << std::endl;
             }
         }
-        os << std::endl;
+        os  << std::endl;
     }
 }
 
@@ -134,20 +134,20 @@ void Foam::writeFuns::write
             elems.size()*sizeof(label)
         );
 
-        os << std::endl;
+        os  << std::endl;
     }
     else
     {
         forAll(elems, i)
         {
-            os << elems[i] << ' ';
+            os  << elems[i] << ' ';
 
             if (i > 0 && (i % 10) == 0)
             {
-                os << std::endl;
+                os  << std::endl;
             }
         }
-        os << std::endl;
+        os  << std::endl;
     }
 }
 
diff --git a/applications/utilities/postProcessing/dataConversion/foamToFieldview9/writeFunctions.C b/applications/utilities/postProcessing/dataConversion/foamToFieldview9/writeFunctions.C
index 2de1128c6310524f983c304cd69ca47756a797ae..eec0beea362b415dafbd85976235b2a829d2937c 100644
--- a/applications/utilities/postProcessing/dataConversion/foamToFieldview9/writeFunctions.C
+++ b/applications/utilities/postProcessing/dataConversion/foamToFieldview9/writeFunctions.C
@@ -85,12 +85,12 @@ void writeBytes(char* start, int nBytes)
 // Debug: write wall flags data
 void writeWallFlags(Ostream& os, label cellI, const labelList& wallFlags)
 {
-    os << "cell " << cellI << " wallsFlags:";
+    os  << "cell " << cellI << " wallsFlags:";
     forAll(wallFlags, wallFaceI)
     {
-        os << wallFlags[wallFaceI] << " ";
+        os  << wallFlags[wallFaceI] << ' ';
     }
-    os << endl;
+    os  << endl;
 }
 
 
diff --git a/applications/utilities/postProcessing/dataConversion/foamToTecplot360/foamToTecplot360.C b/applications/utilities/postProcessing/dataConversion/foamToTecplot360/foamToTecplot360.C
index 0231e15938918958697d7bf29e794a565971912d..2ba61565d99599a7547d6e5aa83ae38c33a3b869 100644
--- a/applications/utilities/postProcessing/dataConversion/foamToTecplot360/foamToTecplot360.C
+++ b/applications/utilities/postProcessing/dataConversion/foamToTecplot360/foamToTecplot360.C
@@ -99,12 +99,12 @@ void print(const char* msg, Ostream& os, const PtrList<GeoField>& flds)
 {
     if (flds.size())
     {
-        os << msg;
+        os  << msg;
         forAll(flds, i)
         {
-            os<< ' ' << flds[i].name();
+            os  << ' ' << flds[i].name();
         }
-        os << endl;
+        os  << endl;
     }
 }
 
@@ -113,9 +113,9 @@ void print(Ostream& os, const wordList& flds)
 {
     forAll(flds, i)
     {
-        os<< ' ' << flds[i];
+        os  << ' ' << flds[i];
     }
-    os << endl;
+    os  << endl;
 }
 
 
diff --git a/applications/utilities/postProcessing/dataConversion/foamToVTK/foamToVTK.C b/applications/utilities/postProcessing/dataConversion/foamToVTK/foamToVTK.C
index 0637dabbd63eda136c04a243222be27039d96193..a93885d976deb67b44463bf812159a78fb9a1f5b 100644
--- a/applications/utilities/postProcessing/dataConversion/foamToVTK/foamToVTK.C
+++ b/applications/utilities/postProcessing/dataConversion/foamToVTK/foamToVTK.C
@@ -163,12 +163,12 @@ void print(const char* msg, Ostream& os, const PtrList<GeoField>& flds)
 {
     if (flds.size())
     {
-        os << msg;
+        os  << msg;
         forAll(flds, i)
         {
-            os<< ' ' << flds[i].name();
+            os  << ' ' << flds[i].name();
         }
-        os << endl;
+        os  << endl;
     }
 }
 
@@ -177,9 +177,9 @@ void print(Ostream& os, const wordList& flds)
 {
     forAll(flds, i)
     {
-        os<< ' ' << flds[i];
+        os  << ' ' << flds[i];
     }
-    os << endl;
+    os  << endl;
 }
 
 
diff --git a/applications/utilities/postProcessing/dataConversion/foamToVTK/writeFuns.C b/applications/utilities/postProcessing/dataConversion/foamToVTK/writeFuns.C
index 5e657f87cf723112a0d4c45e8c4211d4b0e12594..89f0a5932755679d75cb8c650c0231385ddbac9a 100644
--- a/applications/utilities/postProcessing/dataConversion/foamToVTK/writeFuns.C
+++ b/applications/utilities/postProcessing/dataConversion/foamToVTK/writeFuns.C
@@ -94,20 +94,20 @@ void Foam::writeFuns::write
             fField.size()*sizeof(float)
         );
 
-        os << std::endl;
+        os  << std::endl;
     }
     else
     {
         forAll(fField, i)
         {
-            os << fField[i] << ' ';
+            os  << fField[i] << ' ';
 
             if (i > 0 && (i % 10) == 0)
             {
-                os << std::endl;
+                os  << std::endl;
             }
         }
-        os << std::endl;
+        os  << std::endl;
     }
 }
 
@@ -143,20 +143,20 @@ void Foam::writeFuns::write
             elems.size()*sizeof(label)
         );
 
-        os << std::endl;
+        os  << std::endl;
     }
     else
     {
         forAll(elems, i)
         {
-            os << elems[i] << ' ';
+            os  << elems[i] << ' ';
 
             if (i > 0 && (i % 10) == 0)
             {
-                os << std::endl;
+                os  << std::endl;
             }
         }
-        os << std::endl;
+        os  << std::endl;
     }
 }
 
@@ -186,11 +186,11 @@ void Foam::writeFuns::writeHeader
 
     if (binary)
     {
-        os << "BINARY" << std::endl;
+        os  << "BINARY" << std::endl;
     }
     else
     {
-        os << "ASCII" << std::endl;
+        os  << "ASCII" << std::endl;
     }
 }
 
diff --git a/applications/utilities/postProcessing/graphics/PV3Readers/PV3FoamReader/PV3FoamReader/vtkPV3FoamReader.cxx b/applications/utilities/postProcessing/graphics/PV3Readers/PV3FoamReader/PV3FoamReader/vtkPV3FoamReader.cxx
index 74f8f013a8ac0134825326c7f3a60f0aa717adf0..b508d21ec0cd3a407f8e0bf21c53a98de26c2bf2 100644
--- a/applications/utilities/postProcessing/graphics/PV3Readers/PV3FoamReader/PV3FoamReader/vtkPV3FoamReader.cxx
+++ b/applications/utilities/postProcessing/graphics/PV3Readers/PV3FoamReader/PV3FoamReader/vtkPV3FoamReader.cxx
@@ -502,15 +502,14 @@ void vtkPV3FoamReader::PrintSelf(ostream& os, vtkIndent indent)
     vtkDebugMacro(<<"PrintSelf");
 
     this->Superclass::PrintSelf(os,indent);
-    os<< indent << "File name: "
-      << (this->FileName ? this->FileName : "(none)") << "\n";
+    os  << indent << "File name: "
+        << (this->FileName ? this->FileName : "(none)") << "\n";
 
     foamData_->PrintSelf(os, indent);
 
-    os<< indent << "Time step range: "
-      << this->TimeStepRange[0] << " - " << this->TimeStepRange[1]
-      << "\n";
-    os<< indent << "Time step: " << this->GetTimeStep() << endl;
+    os  << indent << "Time step range: "
+        << this->TimeStepRange[0] << " - " << this->TimeStepRange[1] << "\n"
+        << indent << "Time step: " << this->GetTimeStep() << endl;
 }
 
 
diff --git a/applications/utilities/postProcessing/graphics/PV3Readers/PV3blockMeshReader/PV3blockMeshReader/vtkPV3blockMeshReader.cxx b/applications/utilities/postProcessing/graphics/PV3Readers/PV3blockMeshReader/PV3blockMeshReader/vtkPV3blockMeshReader.cxx
index 89532a6ddea90b41f29e5d0f6b12f50d84e2221f..547c4ff66b57adeb79b7b28cd09c72fb19f2cf20 100644
--- a/applications/utilities/postProcessing/graphics/PV3Readers/PV3blockMeshReader/PV3blockMeshReader/vtkPV3blockMeshReader.cxx
+++ b/applications/utilities/postProcessing/graphics/PV3Readers/PV3blockMeshReader/PV3blockMeshReader/vtkPV3blockMeshReader.cxx
@@ -283,8 +283,8 @@ void vtkPV3blockMeshReader::PrintSelf(ostream& os, vtkIndent indent)
     vtkDebugMacro(<<"PrintSelf");
 
     this->Superclass::PrintSelf(os,indent);
-    os<< indent << "File name: "
-      << (this->FileName ? this->FileName : "(none)") << "\n";
+    os  << indent << "File name: "
+        << (this->FileName ? this->FileName : "(none)") << "\n";
 
     foamData_->PrintSelf(os, indent);
 }
diff --git a/applications/utilities/postProcessing/miscellaneous/postChannel/sumData.C b/applications/utilities/postProcessing/miscellaneous/postChannel/sumData.C
index 9f929b48143082e6669d118fdf57a053ef73d865..73fdaf20381f70415da5209c66ed9a837893273a 100644
--- a/applications/utilities/postProcessing/miscellaneous/postChannel/sumData.C
+++ b/applications/utilities/postProcessing/miscellaneous/postChannel/sumData.C
@@ -41,7 +41,7 @@ Foam::Ostream& Foam::operator<<
 
 Foam::Istream& Foam::operator>>(Foam::Istream& is, Foam::sumData& wDist)
 {
-    return is >> wDist.oldFace_ >> wDist.sum_ >> wDist.count_;
+    return is  >> wDist.oldFace_ >> wDist.sum_ >> wDist.count_;
 }
 
 
diff --git a/applications/utilities/surface/surfaceSplitNonManifolds/surfaceSplitNonManifolds.C b/applications/utilities/surface/surfaceSplitNonManifolds/surfaceSplitNonManifolds.C
index ce32c54206e54bb19b2e86bd923e9aad761042ef..32975365c820d6ca7dcd33977b0abe18e90c486b 100644
--- a/applications/utilities/surface/surfaceSplitNonManifolds/surfaceSplitNonManifolds.C
+++ b/applications/utilities/surface/surfaceSplitNonManifolds/surfaceSplitNonManifolds.C
@@ -65,7 +65,7 @@ void writeOBJ(Ostream& os, const pointField& pts)
     {
         const point& pt = pts[i];
 
-        os << "v " << pt.x() << ' ' << pt.y() << ' ' << pt.z() << endl;
+        os  << "v " << pt.x() << ' ' << pt.y() << ' ' << pt.z() << endl;
     }
 }
 
@@ -85,7 +85,7 @@ void dumpPoints(const triSurface& surf, const labelList& borderPoint)
         {
             const point& pt = surf.localPoints()[pointI];
 
-            os << "v " << pt.x() << ' ' << pt.y() << ' ' << pt.z() << endl;
+            os  << "v " << pt.x() << ' ' << pt.y() << ' ' << pt.z() << endl;
         }
     }
 }
@@ -108,7 +108,7 @@ void dumpEdges(const triSurface& surf, const boolList& borderEdge)
         {
             const edge& e = surf.edges()[edgeI];
 
-            os << "l " << e.start()+1 << ' ' << e.end()+1 << endl;
+            os  << "l " << e.start()+1 << ' ' << e.end()+1 << endl;
         }
     }
 }
diff --git a/applications/utilities/thermophysical/mixtureAdiabaticFlameT/substance.H b/applications/utilities/thermophysical/mixtureAdiabaticFlameT/substance.H
index b7232cc2c74bb09947dbc9b758bfe3d69a716b83..561e3fc1b65b17bd01df048af8c9d48bfe1b69e4 100644
--- a/applications/utilities/thermophysical/mixtureAdiabaticFlameT/substance.H
+++ b/applications/utilities/thermophysical/mixtureAdiabaticFlameT/substance.H
@@ -95,13 +95,13 @@ public:
 
         friend Istream& operator>>(Istream& is, substance& s)
         {
-            is >> s.name_ >> s.volFrac_;
+            is  >> s.name_ >> s.volFrac_;
             return is;
         }
 
         friend Ostream& operator<<(Ostream& os, const substance& s)
         {
-            os << s.name_ << token::SPACE << s.volFrac_;
+            os  << s.name_ << token::SPACE << s.volFrac_;
             return os;
         }
 };
diff --git a/src/OSspecific/POSIX/printStack.C b/src/OSspecific/POSIX/printStack.C
index 323c812a9880c6274474e1251979107e516dcae2..87482265db8d5247f4241474091af775f4ae1468 100644
--- a/src/OSspecific/POSIX/printStack.C
+++ b/src/OSspecific/POSIX/printStack.C
@@ -122,19 +122,18 @@ void printSourceFileAndLine
 
         if (line == "")
         {
-            os << " addr2line failed";
+            os  << " addr2line failed";
         }
         else if (line == "??:0")
         {
-            os << " in " << filename;
+            os  << " in " << filename;
         }
         else
         {
             string cwdLine(line.replaceAll(cwd() + '/', ""));
-
             string homeLine(cwdLine.replaceAll(home(), '~'));
 
-            os << " at " << homeLine.c_str();
+            os  << " at " << homeLine.c_str();
         }
     }
 }
@@ -160,11 +159,11 @@ void getSymbolForRaw
 
         if (fcnt != "")
         {
-            os << fcnt.c_str();
+            os  << fcnt.c_str();
             return;
         }
     }
-    os << "Uninterpreted: " << raw.c_str();
+    os  << "Uninterpreted: " << raw.c_str();
 }
 
 
@@ -210,8 +209,8 @@ void error::printStack(Ostream& os)
         fileName programFile;
         word address;
 
-        os << '#' << label(i) << "  ";
-        //os << "Raw   : " << msg << "\n\t";
+        os  << '#' << label(i) << "  ";
+        //os  << "Raw   : " << msg << "\n\t";
         {
             string::size_type lPos = msg.find('[');
             string::size_type rPos = msg.find(']');
@@ -263,12 +262,12 @@ void error::printStack(Ostream& os)
 
                 if (status == 0 && cplusNamePtr)
                 {
-                    os << cplusNamePtr;
+                    os  << cplusNamePtr;
                     free(cplusNamePtr);
                 }
                 else
                 {
-                    os << cName.c_str();
+                    os  << cName.c_str();
                 }
             }
             else
@@ -279,7 +278,7 @@ void error::printStack(Ostream& os)
                 {
                     string fullName(msg.substr(start, endBracketPos-start));
 
-                    os << fullName.c_str() << nl;
+                    os  << fullName.c_str() << nl;
                 }
                 else
                 {
@@ -296,7 +295,7 @@ void error::printStack(Ostream& os)
 
         printSourceFileAndLine(os, addressMap, programFile, address);
 
-        os << nl;
+        os  << nl;
     }
 
     free(strings);
diff --git a/src/OpenFOAM/meshes/polyMesh/polyPatches/basic/coupled/coupledPolyPatch.C b/src/OpenFOAM/meshes/polyMesh/polyPatches/basic/coupled/coupledPolyPatch.C
index 26b892921e8809480eca878ffc47b6397f7a9b77..a18ec94f5cac5398c4dfe43d392eb753f97543ec 100644
--- a/src/OpenFOAM/meshes/polyMesh/polyPatches/basic/coupled/coupledPolyPatch.C
+++ b/src/OpenFOAM/meshes/polyMesh/polyPatches/basic/coupled/coupledPolyPatch.C
@@ -71,7 +71,7 @@ void Foam::coupledPolyPatch::writeOBJ
     writeOBJ(os, p1);
     vertI++;
 
-    os<< "l " << vertI-1 << ' ' << vertI << nl;
+    os  << "l " << vertI-1 << ' ' << vertI << nl;
 }
 
 
diff --git a/src/dynamicMesh/meshCut/cellCuts/cellCuts.C b/src/dynamicMesh/meshCut/cellCuts/cellCuts.C
index e429782622b691910257e9182caa1e72a4ec8d43..0a856360c48a944166848200346fc19b98215f6c 100644
--- a/src/dynamicMesh/meshCut/cellCuts/cellCuts.C
+++ b/src/dynamicMesh/meshCut/cellCuts/cellCuts.C
@@ -3036,12 +3036,12 @@ void Foam::cellCuts::writeOBJ
         vertI++;
     }
 
-    os << 'f';
+    os  << 'f';
     forAll(loopPts, fp)
     {
         os  << ' ' << startVertI + fp + 1;
     }
-    os<< endl;
+    os  << endl;
 }
 
 
diff --git a/src/lagrangian/basic/IOPosition/IOPosition.C b/src/lagrangian/basic/IOPosition/IOPosition.C
index b3345417c0ad3025b385f2e92dfc22a6be57b40a..5d0d62facb4e113a2b8398752de8ad45c5cd286e 100644
--- a/src/lagrangian/basic/IOPosition/IOPosition.C
+++ b/src/lagrangian/basic/IOPosition/IOPosition.C
@@ -67,7 +67,7 @@ bool Foam::IOPosition<ParticleType>::write() const
 template<class ParticleType>
 bool Foam::IOPosition<ParticleType>::writeData(Ostream& os) const
 {
-    os<< cloud_.size() << nl << token::BEGIN_LIST << nl;
+    os  << cloud_.size() << nl << token::BEGIN_LIST << nl;
 
     forAllConstIter(typename Cloud<ParticleType>, cloud_, iter)
     {
@@ -80,7 +80,7 @@ bool Foam::IOPosition<ParticleType>::writeData(Ostream& os) const
         os  << nl;
     }
 
-    os<< token::END_LIST << endl;
+    os  << token::END_LIST << endl;
 
     return os.good();
 }
diff --git a/src/meshTools/octree/treeLeaf.C b/src/meshTools/octree/treeLeaf.C
index c0b4ead2df9ad62b2256d2ee6967494f97cc38d8..823594fb710df6b6ba5d7bb0b836fa6a8bbd3d3a 100644
--- a/src/meshTools/octree/treeLeaf.C
+++ b/src/meshTools/octree/treeLeaf.C
@@ -36,7 +36,7 @@ void Foam::treeLeaf<Type>::space(Ostream& os, const label n)
 {
     for (label i=0; i<n; i++)
     {
-        os<< ' ';
+        os  << ' ';
     }
 }
 
diff --git a/src/meshTools/octree/treeNode.C b/src/meshTools/octree/treeNode.C
index 2918ee101d9073f620e81af8f3117185288508bc..01a8529afa37d992b7d348f23e55dcc3e0000dbc 100644
--- a/src/meshTools/octree/treeNode.C
+++ b/src/meshTools/octree/treeNode.C
@@ -104,7 +104,7 @@ void Foam::treeNode<Type>::space(Ostream& os, const label n)
 {
     for (label i=0; i<n; i++)
     {
-        os<< ' ';
+        os  << ' ';
     }
 }
 
diff --git a/src/triSurface/triSurface/interfaces/DX/writeDX.C b/src/triSurface/triSurface/interfaces/DX/writeDX.C
index c9928544dfb22ee50f45cd9121ad5aa4ecbdd12a..8592cb2db4a0c84762e1bd2060479c048358a6a6 100644
--- a/src/triSurface/triSurface/interfaces/DX/writeDX.C
+++ b/src/triSurface/triSurface/interfaces/DX/writeDX.C
@@ -53,7 +53,7 @@ void triSurface::writeDXGeometry
         os  << "#     " << patchI << "    "
             << myPatches[patchI].name() << endl;
     }
-    os << endl << endl;
+    os  << nl << endl;
 
     // Write vertex coordinates
 
@@ -63,7 +63,7 @@ void triSurface::writeDXGeometry
     forAll(localPoints(), pointI)
     {
         const point& pt = localPoints()[pointI];
-        os << pt.x() << ' ' << pt.y() << ' ' << pt.z() << endl;
+        os  << pt.x() << ' ' << pt.y() << ' ' << pt.z() << endl;
     }
     os  << endl;
 
@@ -87,10 +87,9 @@ void triSurface::writeDXGeometry
             )
             {
                 const label faceI = faceMap[faceIndex++];
-
                 const labelledTri& f = localFaces()[faceI];
 
-                os << f[0] << ' ' << f[1] << ' ' << f[2] << endl;
+                os  << f[0] << ' ' << f[1] << ' ' << f[2] << endl;
             }
         }
     }
@@ -100,11 +99,11 @@ void triSurface::writeDXGeometry
         {
             const labelledTri& f = localFaces()[faceI];
 
-            os << f[0] << ' ' << f[1] << ' ' << f[2] << endl;
+            os  << f[0] << ' ' << f[1] << ' ' << f[2] << endl;
         }
     }
-    os << "attribute \"element type\" string \"triangles\"" << endl
-       << "attribute \"ref\" string \"positions\"" << endl << endl;
+    os  << "attribute \"element type\" string \"triangles\"" << endl
+        << "attribute \"ref\" string \"positions\"" << endl << endl;
 }
 
 
@@ -139,7 +138,7 @@ void triSurface::writeDX(const bool writeSorted, Ostream& os) const
         {
             forAll(myPatches[patchI], patchFaceI)
             {
-                os << patchI << endl;
+                os  << patchI << endl;
             }
         }
     }
@@ -149,7 +148,7 @@ void triSurface::writeDX(const bool writeSorted, Ostream& os) const
 
         forAll(*this, faceI)
         {
-            os << faceI << endl;
+            os  << faceI << endl;
         }
     }
 
@@ -157,7 +156,7 @@ void triSurface::writeDX(const bool writeSorted, Ostream& os) const
 
     writeDXTrailer(os);
 
-    os << "end" << endl;
+    os  << "end" << endl;
 }
 
 
@@ -173,7 +172,7 @@ void triSurface::writeDX(const scalarField& field, Ostream& os) const
             << " data follows" << endl;
         forAll(field, faceI)
         {
-            os << field[faceI] << endl;
+            os  << field[faceI] << endl;
         }
         os  << endl
             << "attribute \"dep\" string \"connections\"" << endl << endl;
@@ -185,7 +184,7 @@ void triSurface::writeDX(const scalarField& field, Ostream& os) const
             << " data follows" << endl;
         forAll(field, pointI)
         {
-            os << field[pointI] << endl;
+            os  << field[pointI] << endl;
         }
         os  << endl
             << "attribute \"dep\" string \"positions\"" << endl << endl;
@@ -202,7 +201,7 @@ void triSurface::writeDX(const scalarField& field, Ostream& os) const
 
     writeDXTrailer(os);
 
-    os << "end" << endl;
+    os  << "end" << endl;
 }
 
 
@@ -251,7 +250,7 @@ void triSurface::writeDX(const vectorField& field, Ostream& os) const
 
     writeDXTrailer(os);
 
-    os << "end" << endl;
+    os  << "end" << endl;
 }
 
 
diff --git a/src/triSurface/triSurface/interfaces/OBJ/writeOBJ.C b/src/triSurface/triSurface/interfaces/OBJ/writeOBJ.C
index ef4e0f19ac8b1b4817b61a5c64b1190c91774aa7..101bb66a8a16c07a1fd976caf53b3079a61740f0 100644
--- a/src/triSurface/triSurface/interfaces/OBJ/writeOBJ.C
+++ b/src/triSurface/triSurface/interfaces/OBJ/writeOBJ.C
@@ -79,7 +79,7 @@ void triSurface::writeOBJ(const bool writeSorted, Ostream& os) const
         {
             // Print all faces belonging to this patch
 
-            os << "g " << myPatches[patchI].name() << nl;
+            os  << "g " << myPatches[patchI].name() << nl;
 
             for
             (
@@ -121,7 +121,7 @@ void triSurface::writeOBJ(const bool writeSorted, Ostream& os) const
             if (prevPatchI != patchIDs[faceI])
             {
                 prevPatchI = patchIDs[faceI];
-                os << "g " << myPatches[patchIDs[faceI]].name() << nl;
+                os  << "g " << myPatches[patchIDs[faceI]].name() << nl;
             }
             os  << "f "
                 << operator[](faceI)[0] + 1 << ' '
diff --git a/src/triSurface/triSurface/interfaces/OFF/writeOFF.C b/src/triSurface/triSurface/interfaces/OFF/writeOFF.C
index fdf708ad09a90cba94e9b576410b762e95810394..eae00492a973ffc07a75d63bfc36607cc825935e 100644
--- a/src/triSurface/triSurface/interfaces/OFF/writeOFF.C
+++ b/src/triSurface/triSurface/interfaces/OFF/writeOFF.C
@@ -48,7 +48,7 @@ void triSurface::writeOFF(const bool writeSorted, Ostream& os) const
         os  << "#     " << patchI << "    "
             << myPatches[patchI].name() << endl;
     }
-    os << endl << endl;
+    os  << nl << endl;
 
     const pointField& ps = points();
 
@@ -56,7 +56,7 @@ void triSurface::writeOFF(const bool writeSorted, Ostream& os) const
         << ps.size()
         << ' ' << size()
         << ' ' << nEdges()
-        << endl << endl;
+        << nl << endl;
 
     // Write vertex coords
     forAll(ps, pointi)
@@ -66,7 +66,7 @@ void triSurface::writeOFF(const bool writeSorted, Ostream& os) const
             << ps[pointi].z() << " #" << pointi << endl;
     }
 
-    os << endl;
+    os  << endl;
 
     if (writeSorted)
     {
diff --git a/src/triSurface/triSurface/interfaces/STL/writeSTL.C b/src/triSurface/triSurface/interfaces/STL/writeSTL.C
index 020f446a6e11970cbd25b00d0b9f5a04ac4d9b63..27bd12a3acfef1cbbefd3859ab6bd0f1dbb1e5c8 100644
--- a/src/triSurface/triSurface/interfaces/STL/writeSTL.C
+++ b/src/triSurface/triSurface/interfaces/STL/writeSTL.C
@@ -48,7 +48,7 @@ void triSurface::writeSTLASCII(Ostream& os) const
         // Print all faces belonging to this region
         const surfacePatch& patch = myPatches[patchI];
 
-        os << "solid " << patch.name() << endl;
+        os  << "solid " << patch.name() << endl;
 
         for
         (
@@ -62,8 +62,8 @@ void triSurface::writeSTLASCII(Ostream& os) const
             const vector& n = faceNormals()[faceI];
 
             os  << "  facet normal "
-                << n.x() << ' ' << n.y() << ' ' << n.z() << endl;
-            os  << "    outer loop" << endl;
+                << n.x() << ' ' << n.y() << ' ' << n.z() << nl
+                << "    outer loop" << endl;
 
             const labelledTri& f = (*this)[faceI];
             const point& pa = points()[f[0]];
@@ -71,18 +71,16 @@ void triSurface::writeSTLASCII(Ostream& os) const
             const point& pc = points()[f[2]];
 
             os  << "       vertex "
-                << pa.x() << ' ' << pa.y() << ' ' << pa.z() << endl;
-            os  << "       vertex "
-                << pb.x() << ' ' << pb.y() << ' ' << pb.z() << endl;
-            os  << "       vertex "
-                << pc.x() << ' ' << pc.y() << ' ' << pc.z() << endl;
-            os
-                << "    endloop" << endl;
-            os
+                << pa.x() << ' ' << pa.y() << ' ' << pa.z() << nl
+                << "       vertex "
+                << pb.x() << ' ' << pb.y() << ' ' << pb.z() << nl
+                << "       vertex "
+                << pc.x() << ' ' << pc.y() << ' ' << pc.z() << nl
+                << "    endloop" << nl
                 << "  endfacet" << endl;
         }
 
-        os << "endsolid " << patch.name() << endl;
+        os  << "endsolid " << patch.name() << endl;
     }
 }
 
diff --git a/src/triSurface/triSurface/surfacePatch/surfacePatchIOList.C b/src/triSurface/triSurface/surfacePatch/surfacePatchIOList.C
index 3d41453fe531c1759689dddad60ab566a0776b11..dc044c2d17a07b2bd95aca9de6b84415cf7a63dc 100644
--- a/src/triSurface/triSurface/surfacePatch/surfacePatchIOList.C
+++ b/src/triSurface/triSurface/surfacePatch/surfacePatchIOList.C
@@ -120,7 +120,7 @@ Foam::surfacePatchIOList::~surfacePatchIOList()
 // writeData member function required by regIOobject
 bool Foam::surfacePatchIOList::writeData(Ostream& os) const
 {
-    os << *this;
+    os  << *this;
     return os.good();
 }