From 1dead425e410bc46434f56c0de3bcb621a19fe1f Mon Sep 17 00:00:00 2001 From: Matt Pharr Date: Fri, 10 Feb 2012 12:26:35 -0800 Subject: [PATCH] Don't indent *too* much on continued lines with warnings/errors. --- util.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/util.cpp b/util.cpp index b7976e64..7057755b 100644 --- a/util.cpp +++ b/util.cpp @@ -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(' '); }