Commit e3bdf393 authored by Rusty Russell's avatar Rusty Russell

ccanlint: handle DOS-style \r\n lines when parsing.

We don't correctly detect pure-comment lines in ccan/ttxml/ttxml.c
without this.
parent 58025731
......@@ -349,7 +349,7 @@ static char *remove_comments(const char *line, bool in_comment,
static bool is_empty(const char *line)
{
return strspn(line, " \t") == strlen(line);
return strspn(line, " \r\t") == strlen(line);
}
static bool continues(const char *line)
......
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