fixed right padding issue for several output members
[senf.git] / senf / Utils / hexdump.cc
index e332a6f..817c11a 100644 (file)
@@ -1,6 +1,6 @@
 // $Id$
 //
-// Copyright (C) 2008 
+// Copyright (C) 2008
 // Fraunhofer Institute for Open Communication Systems (FOKUS)
 // Competence Center NETwork research (NET), St. Augustin, GERMANY
 //     Stefan Bund <g0dil@berlios.de>
 #include "hexdump.ih"
 
 // Custom includes
-#include <iomanip> 
+#include <iomanip>
 
 //#include "hexdump.mpp"
 #define prefix_
-///////////////////////////////cc.p////////////////////////////////////////
+//-/////////////////////////////////////////////////////////////////////////////////////////////////
 #ifndef DOXYGEN
 
 prefix_ void senf::detail::HexDumper::operator()(unsigned char ch)
@@ -42,7 +42,7 @@ prefix_ void senf::detail::HexDumper::operator()(unsigned char ch)
             ascii_ = "";
         }
         os_ << "  "
-               << std::hex << std::setw(4) << std::setfill('0')
+               << std::hex << std::setw(4) << std::setfill('0')  << std::right
                << offset_ << ' ';
     } else if ((offset_ % block_size_) == block_size_/2) {
         os_ << " ";
@@ -66,8 +66,8 @@ prefix_ senf::detail::HexDumper::~HexDumper()
     }
 }
 
-#endif 
-///////////////////////////////cc.e////////////////////////////////////////
+#endif
+//-/////////////////////////////////////////////////////////////////////////////////////////////////
 #undef prefix_
 //#include "hexdump.mpp"