Merge pull request #886 from servusDei2018/dev
Optimized by replacing `endl` with `'\n'`
This commit is contained in:
commit
34fe7c9d7f
@ -96,10 +96,9 @@ void print_line(stringstream &sout, string line)
|
|||||||
epos = line.find("*/");
|
epos = line.find("*/");
|
||||||
if (spos!=string::npos && epos!=string::npos) {
|
if (spos!=string::npos && epos!=string::npos) {
|
||||||
sout << line.substr(0, spos);
|
sout << line.substr(0, spos);
|
||||||
sout << "</b>" << line.substr(spos) << "<b>" << endl;
|
sout << "</b>" << line.substr(spos) << "<b>" << '\n';
|
||||||
} else {
|
} else {
|
||||||
// fprintf(stderr, "lines=%s\n", line.c_str());
|
sout << line << '\n';
|
||||||
sout << line << endl;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user