Optimized by replacing endl with '\n'

This commit is contained in:
Nate 2020-07-23 20:13:14 -04:00 committed by GitHub
parent 48f9ecfb34
commit e416cc9baa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -96,10 +96,9 @@ void print_line(stringstream &sout, string line)
epos = line.find("*/");
if (spos!=string::npos && epos!=string::npos) {
sout << line.substr(0, spos);
sout << "</b>" << line.substr(spos) << "<b>" << endl;
sout << "</b>" << line.substr(spos) << "<b>" << '\n';
} else {
// fprintf(stderr, "lines=%s\n", line.c_str());
sout << line << endl;
sout << line << '\n';
}
}