@@ -75,8 +75,7 @@ void CreateOutputLutFile(const std::string & outLutFilepath, OCIO::ConstGroupTra
7575 std::ostringstream oss;
7676 oss << " Could not open the file '"
7777 << outLutFilepath
78- << " '."
79- << std::endl;
78+ << " '.\n " ;
8079 throw OCIO::Exception (oss.str ().c_str ());
8180 }
8281}
@@ -104,7 +103,7 @@ int main(int argc, const char ** argv)
104103
105104 if (ap.parse (argc, argv) < 0 )
106105 {
107- std::cerr << std::endl << ap.geterror () << std::endl << std::endl ;
106+ std::cerr << " \n " << ap.geterror () << " \n\n " ;
108107 ap.usage ();
109108 return 1 ;
110109 }
@@ -130,17 +129,17 @@ int main(int argc, const char ** argv)
130129 if (StringUtils::EndsWith (cscName, BuiltinSuffix))
131130 {
132131 cscName.resize (cscName.size () - strlen (BuiltinSuffix));
133- std::cout << std::endl << " \t " << cscName;
132+ std::cout << " \n \t" << cscName;
134133 }
135134 }
136- std::cout << std::endl << std::endl ;
135+ std::cout << " \n\n " ;
137136
138137 return 0 ;
139138 }
140139
141140 if (args.size () != 2 )
142141 {
143- std::cerr << " ERROR: Expecting 2 arguments, found " << args.size () << " ." << std::endl ;
142+ std::cerr << " ERROR: Expecting 2 arguments, found " << args.size () << " .\n " ;
144143 ap.usage ();
145144 return 1 ;
146145 }
@@ -172,15 +171,14 @@ int main(int argc, const char ** argv)
172171 {
173172 std::cerr << " ERROR: The LUT color space name '"
174173 << originalCSC
175- << " ' is not supported."
176- << std::endl;
174+ << " ' is not supported.\n " ;
177175 return 1 ;
178176 }
179177 }
180178
181179 if (outLutFilepath.empty ())
182180 {
183- std::cerr << " ERROR: The output file path is missing." << std::endl ;
181+ std::cerr << " ERROR: The output file path is missing.\n " ;
184182 return 1 ;
185183 }
186184 else
@@ -190,22 +188,21 @@ int main(int argc, const char ** argv)
190188 {
191189 std::cerr << " ERROR: The output LUT file path '"
192190 << outLutFilepath
193- << " ' must have a .clf extension."
194- << std::endl;
191+ << " ' must have a .clf extension.\n " ;
195192 return 1 ;
196193 }
197194 }
198195
199196 if (verbose)
200197 {
201- std::cout << " OCIO Version: " << OCIO::GetVersion () << std::endl ;
198+ std::cout << " OCIO Version: " << OCIO::GetVersion () << " \n " ;
202199 }
203200
204201 try
205202 {
206203 if (verbose)
207204 {
208- std::cout << " Building the transformation." << std::endl ;
205+ std::cout << " Building the transformation.\n " ;
209206 }
210207
211208 OCIO::GroupTransformRcPtr grp = OCIO::GroupTransform::Create ();
@@ -261,7 +258,7 @@ int main(int argc, const char ** argv)
261258
262259 if (verbose && !measure)
263260 {
264- std::cout << Msg << " ." << std::endl ;
261+ std::cout << Msg << " .\n " ;
265262 }
266263
267264 if (measure)
@@ -280,17 +277,17 @@ int main(int argc, const char ** argv)
280277 }
281278 catch (OCIO::Exception & ex)
282279 {
283- std::cerr << " OCIO ERROR: " << ex.what () << std::endl ;
280+ std::cerr << " OCIO ERROR: " << ex.what () << " \n " ;
284281 return 1 ;
285282 }
286283 catch (std::exception & ex)
287284 {
288- std::cerr << " ERROR: " << ex.what () << std::endl ;
285+ std::cerr << " ERROR: " << ex.what () << " \n " ;
289286 return 1 ;
290287 }
291288 catch (...)
292289 {
293- std::cerr << " ERROR: Unknown error encountered." << std::endl ;
290+ std::cerr << " ERROR: Unknown error encountered.\n " ;
294291 return 1 ;
295292 }
296293
0 commit comments