Don't indent *too* much on continued lines with warnings/errors.
This commit is contained in:
4
util.cpp
4
util.cpp
@@ -171,8 +171,8 @@ lPrintWithWordBreaks(const char *buf, int columnWidth, FILE *out) {
|
|||||||
column = indent;
|
column = indent;
|
||||||
outStr.push_back('\n');
|
outStr.push_back('\n');
|
||||||
// Indent to the same column as the ":" at the start of the
|
// Indent to the same column as the ":" at the start of the
|
||||||
// message
|
// message, unless doing so would be too far in.
|
||||||
for (int i = 0; i < indent; ++i)
|
for (int i = 0; i < std::min(16, indent); ++i)
|
||||||
outStr.push_back(' ');
|
outStr.push_back(' ');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user