Don't indent *too* much on continued lines with warnings/errors.

This commit is contained in:
Matt Pharr
2012-02-10 12:26:35 -08:00
parent adb1e47a59
commit 1dead425e4

View File

@@ -171,8 +171,8 @@ lPrintWithWordBreaks(const char *buf, int columnWidth, FILE *out) {
column = indent;
outStr.push_back('\n');
// Indent to the same column as the ":" at the start of the
// message
for (int i = 0; i < indent; ++i)
// message, unless doing so would be too far in.
for (int i = 0; i < std::min(16, indent); ++i)
outStr.push_back(' ');
}