Browse Source

ccanlint: fix parsing bug which believes lines starting with - are a section header.

Rusty Russell 15 years ago
parent
commit
b06cf2a675
1 changed files with 2 additions and 1 deletions
  1. 2 1
      tools/doc_extract-core.c

+ 2 - 1
tools/doc_extract-core.c

@@ -82,9 +82,10 @@ static unsigned int is_summary_line(const char *line)
 	id_len = strspn(line, IDENT_CHARS" ");
 	if (id_len == 0)
 		return 0;
+	if (strspn(line, " ") == id_len)
+		return 0;
 	if (!strstarts(line + id_len-1, " - "))
 		return 0;
-
 	return id_len - 1;
 }