(xdprval): Escape the space character so that a line can be simply
split into fields at space.
This commit is contained in:
parent
d89c268b8b
commit
0262aaf464
1 changed files with 1 additions and 1 deletions
|
@ -307,7 +307,7 @@ xdprval(struct valstr *val, char *sep)
|
||||||
if (s) {
|
if (s) {
|
||||||
pr("%s\"", sep);
|
pr("%s\"", sep);
|
||||||
while (*s) {
|
while (*s) {
|
||||||
for (e = s; *e != '"' && *e != '\\' && isprint(*e); ++e) ;
|
for (e = s; *e != '"' && *e != '\\' && isgraph(*e); ++e) ;
|
||||||
pr("%.*s", (int)(e-s), s);
|
pr("%.*s", (int)(e-s), s);
|
||||||
if (*e)
|
if (*e)
|
||||||
pr("\\%03o", *e++);
|
pr("\\%03o", *e++);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue