Browse Source

pEpLog decorate no '\n'

LIB-11
heck 4 years ago
parent
commit
b2491e79ef
  1. 5
      src/pEpLog.cc

5
src/pEpLog.cc

@ -58,7 +58,7 @@ namespace pEp {
void logH2(const string& msg, Utils::Color col)
{
log(decorate_centered(msg, '='), col);
log( "\n" +decorate_centered(msg, '='), col);
}
void logH3(const string& msg, Utils::Color col)
@ -90,8 +90,7 @@ namespace pEp {
int decolen = static_cast<int>(
floor((double(line_width - msg_truncated.length()))) / 2.0);
tmp << endl
<< std::string(decolen, decoration) << ' ' << msg_truncated << ' '
tmp << std::string(decolen, decoration) << ' ' << msg_truncated << ' '
<< std::string(decolen, decoration);
return tmp.str();
}

Loading…
Cancel
Save