diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2011-01-06 11:26:47 +1030 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2011-01-06 11:26:47 +1030 |
commit | b06cf2a67593d4101d1c20b86c5864f062df4a5b (patch) | |
tree | eb009911bd01ee8d551e2339b201b5eb83853817 | |
parent | b3a47758b62c98a3a981e7b822e68c37380831e3 (diff) |
ccanlint: fix parsing bug which believes lines starting with - are a section header.
-rw-r--r-- | tools/doc_extract-core.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/doc_extract-core.c b/tools/doc_extract-core.c index 2862eedc..07d31c77 100644 --- a/tools/doc_extract-core.c +++ b/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; } |