| 253 | } |
| 254 | |
| 255 | static void strbuf_add_indented_text(struct strbuf *buf, const char *text, |
| 256 | int indent, int indent2) |
| 257 | { |
| 258 | if (indent < 0) |
| 259 | indent = 0; |
| 260 | while (*text) { |
| 261 | const char *eol = strchrnul(text, '\n'); |
| 262 | if (*eol == '\n') |
| 263 | eol++; |
| 264 | strbuf_addchars(buf, ' ', indent); |
| 265 | strbuf_add(buf, text, eol - text); |
| 266 | text = eol; |
| 267 | indent = indent2; |
| 268 | } |
| 269 | } |
| 270 | |
| 271 | /* |
| 272 | * Wrap the text, if necessary. The variable indent is the indent for the |
no test coverage detected