projects
/
ccan
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
b3a4775
)
ccanlint: fix parsing bug which believes lines starting with - are a section header.
author
Rusty Russell
<rusty@rustcorp.com.au>
Thu, 6 Jan 2011 00:56:47 +0000
(11:26 +1030)
committer
Rusty Russell
<rusty@rustcorp.com.au>
Thu, 6 Jan 2011 00:56:47 +0000
(11:26 +1030)
tools/doc_extract-core.c
patch
|
blob
|
history
diff --git
a/tools/doc_extract-core.c
b/tools/doc_extract-core.c
index 2862eedc3b91a839749e34fe2f0ac516532a1eb6..07d31c77c01f15e85cbc3cebda601b050b916c5f 100644
(file)
--- 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;
}