mirror of
git://projects.qi-hardware.com/eda-tools.git
synced 2024-12-23 21:28:38 +02:00
sch2fig/git-file.c (send_data): don't pass newline to parser
We tried to do what fgets does, but file.c undid that for regular files, so let's be compatible.
This commit is contained in:
parent
de0917e674
commit
91efd87b73
@ -23,7 +23,7 @@
|
|||||||
|
|
||||||
bool file_cat(void *user, const char *line)
|
bool file_cat(void *user, const char *line)
|
||||||
{
|
{
|
||||||
printf("%s", line);
|
printf("%s\n", line);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -336,7 +336,7 @@ static void send_data(const char *data, unsigned size,
|
|||||||
send_line(p, end - p, parse, user);
|
send_line(p, end - p, parse, user);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (!send_line(p, nl - p + 1, parse, user))
|
if (!send_line(p, nl - p, parse, user))
|
||||||
return;
|
return;
|
||||||
p = nl + 1;
|
p = nl + 1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user