From 12b26dfa63842f589e76694d7a5dce7f9b66d6f1 Mon Sep 17 00:00:00 2001
From: "Joachim Wuttke (h)" <j.wuttke@fz-juelich.de>
Date: Fri, 26 Jun 2015 17:31:39 +0200
Subject: [PATCH] corr header for 'cp'

---
 pub/lib/olf.cpp | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/pub/lib/olf.cpp b/pub/lib/olf.cpp
index 45360f76..c0f68c4e 100644
--- a/pub/lib/olf.cpp
+++ b/pub/lib/olf.cpp
@@ -50,7 +50,7 @@ string COlo::info_line( int j ) const
 {
     const int LEN=15;
     char wrd[LEN];
-    snprintf( wrd, LEN, "%-2i%c ", j, V[j]->frozen ? '/' : ' ' );
+    snprintf( wrd, LEN, "%2i%c ", j, V[j]->frozen ? '/' : ' ' );
     string out = wrd;
     out += V[j]->info_line();
     return out;
@@ -593,11 +593,11 @@ vector<string> COlc::info_settings() const
 
 string COlc::info_table_header() const
 {
-    string ret = "";
+    string ret = "j ";
     for ( int iz=0; iz<nZ(); iz++ )
-        ret += str( format( " z%i           " ) % iz );
+        ret += str( format( "z%i            " ) % iz );
     for ( int ip=0; ip<nP; ip++ )
-        ret += str( format( " p%i            " ) % ip );
+        ret += str( format( "p%i             " ) % ip );
     ret += "oc chi^2       1-R^2";
     return ret;
 }
-- 
GitLab