spurious .sp in manpages
[gitweb.git] / builtin-shortlog.c
index 3322c3a2eef3f331ea716690039c8b38bf4a6fd0..3fc43dd7dd89fea2fb7f02e694ed632215002e13 100644 (file)
@@ -188,7 +188,8 @@ static void read_from_stdin(struct path_list *list)
                                bob = buffer + strlen(buffer);
                        else {
                                offset = 8;
-                               if (isspace(bob[-1]))
+                               while (buffer + offset < bob &&
+                                      isspace(bob[-1]))
                                        bob--;
                        }