summaryrefslogtreecommitdiff
path: root/stream/upb_textprinter.c
diff options
context:
space:
mode:
authorJoshua Haberman <joshua@reverberate.org>2011-01-29 23:22:33 -0800
committerJoshua Haberman <joshua@reverberate.org>2011-01-29 23:22:33 -0800
commit02a8cdfff29d6a17836847490a06dfe535855d52 (patch)
tree00e0a91324cd54a726e8bd4b8e9acc760197b75b /stream/upb_textprinter.c
parent93099cccd1e6428d6be45553c7dd7746bbd65e93 (diff)
Fixes to decoder, stdio, textprinter.
Diffstat (limited to 'stream/upb_textprinter.c')
-rw-r--r--stream/upb_textprinter.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/stream/upb_textprinter.c b/stream/upb_textprinter.c
index 7025494..531da12 100644
--- a/stream/upb_textprinter.c
+++ b/stream/upb_textprinter.c
@@ -90,7 +90,7 @@ static upb_flow_t upb_textprinter_value(void *_p, upb_fielddef *f,
case UPB_TYPE(STRING):
case UPB_TYPE(BYTES):
// TODO: escaping.
- CHECK(upb_bytesink_putstr(p->bytesink, UPB_STRLIT(": \""), &p->status));
+ CHECK(upb_bytesink_putstr(p->bytesink, UPB_STRLIT("\""), &p->status));
CHECK(upb_bytesink_putstr(p->bytesink, upb_value_getstr(val), &p->status))
CHECK(upb_bytesink_putstr(p->bytesink, UPB_STRLIT("\""), &p->status));
break;
@@ -107,7 +107,7 @@ static upb_flow_t upb_textprinter_startsubmsg(void *_p, upb_fielddef *f,
upb_textprinter *p = _p;
upb_textprinter_startfield(p, f);
p->indent_depth++;
- upb_bytesink_putstr(p->bytesink, UPB_STRLIT(" {"), &p->status);
+ upb_bytesink_putstr(p->bytesink, UPB_STRLIT("{"), &p->status);
if(!p->single_line) upb_bytesink_putstr(p->bytesink, UPB_STRLIT("\n"), &p->status);
return UPB_CONTINUE;
}
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback