Commit b06cf2a6 authored by Rusty Russell's avatar Rusty Russell

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

parent b3a47758
...@@ -82,9 +82,10 @@ static unsigned int is_summary_line(const char *line) ...@@ -82,9 +82,10 @@ static unsigned int is_summary_line(const char *line)
id_len = strspn(line, IDENT_CHARS" "); id_len = strspn(line, IDENT_CHARS" ");
if (id_len == 0) if (id_len == 0)
return 0; return 0;
if (strspn(line, " ") == id_len)
return 0;
if (!strstarts(line + id_len-1, " - ")) if (!strstarts(line + id_len-1, " - "))
return 0; return 0;
return id_len - 1; return id_len - 1;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment