Index: src/CodeGen/CodeGenerator.cc
===================================================================
--- src/CodeGen/CodeGenerator.cc	(revision 6d611fbad907e655df57704c865a57c64b6c6756)
+++ src/CodeGen/CodeGenerator.cc	(revision a83ffa4028911fea2bf6ed4bcb989b611f3c6a1e)
@@ -10,6 +10,6 @@
 // Created On       : Mon May 18 07:44:20 2015
 // Last Modified By : Peter A. Buhr
-// Last Modified On : Sun Sep  3 20:42:52 2017
-// Update Count     : 490
+// Last Modified On : Sat May  5 09:08:32 2018
+// Update Count     : 494
 //
 #include "CodeGenerator.h"
@@ -370,5 +370,5 @@
 
 	void CodeGenerator::postvisit( Constant * constant ) {
-		output << constant->get_value() ;
+		output << constant->get_value();
 	}
 
@@ -587,5 +587,5 @@
 		output << "(";
 		if ( castExpr->get_result()->isVoid() ) {
-			output << "(void)" ;
+			output << "(void)";
 		} else {
 			// at least one result type of cast.
@@ -878,5 +878,5 @@
 			} // for
 		} // if
-		output << " );" ;
+		output << " );";
 	}
 
@@ -886,9 +886,9 @@
 		output << "( ";
 		if ( asmStmt->get_instruction() ) asmStmt->get_instruction()->accept( *visitor );
-		output << " )" ;
+		output << " )";
 	}
 
 	void CodeGenerator::postvisit( DirectiveStmt * dirStmt ) {
-		output << dirStmt->directive;
+		output << endl << dirStmt->directive;			// endl prevents spaces before directive
 	}
 
@@ -907,5 +907,5 @@
 
 	void CodeGenerator::postvisit( SwitchStmt * switchStmt ) {
-		output << "switch ( " ;
+		output << "switch ( ";
 		switchStmt->get_condition()->accept( *visitor );
 		output << " ) ";
@@ -933,5 +933,5 @@
 		++indent;
 		for ( std::list<Statement *>::iterator i = sts.begin(); i != sts.end();  i++) {
-			output << indent << printLabels( (*i)->get_labels() )  ;
+			output << indent << printLabels( (*i)->get_labels() ) ;
 			(*i)->accept( *visitor );
 			output << endl;
@@ -1070,7 +1070,7 @@
 	void CodeGenerator::postvisit( WhileStmt * whileStmt ) {
 		if ( whileStmt->get_isDoWhile() ) {
-			output << "do" ;
-		} else {
-			output << "while (" ;
+			output << "do";
+		} else {
+			output << "while (";
 			whileStmt->get_condition()->accept( *visitor );
 			output << ")";
@@ -1084,5 +1084,5 @@
 
 		if ( whileStmt->get_isDoWhile() ) {
-			output << " while (" ;
+			output << " while (";
 			whileStmt->get_condition()->accept( *visitor );
 			output << ");";
