diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2021-01-21 00:49:29 +0100 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2021-01-21 11:02:09 +0100 |
commit | 40608342cb3772a6d2a6c125cc2237b97c028ab4 (patch) | |
tree | 60e6fbf488b774d6f90f7c82f9e47e745ac2ed08 /src/libutil/error.cc | |
parent | 8d4268d1901452164b3e666f2eb6bd6bf516493b (diff) |
Remove trailing whitespace
Diffstat (limited to 'src/libutil/error.cc')
-rw-r--r-- | src/libutil/error.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libutil/error.cc b/src/libutil/error.cc index bc5f9e440..ddeb5412a 100644 --- a/src/libutil/error.cc +++ b/src/libutil/error.cc @@ -212,8 +212,7 @@ static std::string indent(std::string_view indentFirst, std::string_view indentR while (!s.empty()) { auto end = s.find('\n'); if (!first) res += "\n"; - res += first ? indentFirst : indentRest; - res += s.substr(0, end); + res += chomp(std::string(first ? indentFirst : indentRest) + std::string(s.substr(0, end))); first = false; if (end == s.npos) break; s = s.substr(end + 1); |