aboutsummaryrefslogtreecommitdiffstats
path: root/src/writer.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-09-29 00:53:39 +0000
committerDavid Robillard <d@drobilla.net>2011-09-29 00:53:39 +0000
commitc8e9bd0923f624945dd69e2af8b8a05c5a09d29c (patch)
tree6204b6f93a83c1e4b57886d47bf58f322776af6c /src/writer.c
parentde5aa9e275107f59cdf12f76fe55895605ee7dc6 (diff)
downloadserd-c8e9bd0923f624945dd69e2af8b8a05c5a09d29c.tar.gz
serd-c8e9bd0923f624945dd69e2af8b8a05c5a09d29c.tar.bz2
serd-c8e9bd0923f624945dd69e2af8b8a05c5a09d29c.zip
Tidy.
git-svn-id: http://svn.drobilla.net/serd/trunk@218 490d8e77-9747-427b-9fa3-0b8f29cee8a0
Diffstat (limited to 'src/writer.c')
-rw-r--r--src/writer.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/writer.c b/src/writer.c
index cb68ed46..a3cb5eab 100644
--- a/src/writer.c
+++ b/src/writer.c
@@ -213,9 +213,9 @@ write_node(SerdWriter* writer,
writer->sink("[]", 2, writer->stream);
} else {
writer->sink("_:", 2, writer->stream);
- if (writer->bprefix
- && !strncmp((const char*)node->buf, (const char*)writer->bprefix,
- writer->bprefix_len)) {
+ if (writer->bprefix && !strncmp((const char*)node->buf,
+ (const char*)writer->bprefix,
+ writer->bprefix_len)) {
writer->sink(node->buf + writer->bprefix_len,
node->n_bytes - writer->bprefix_len,
writer->stream);
@@ -254,7 +254,8 @@ write_node(SerdWriter* writer,
&& ((node->flags & SERD_HAS_NEWLINE)
|| (node->flags & SERD_HAS_QUOTE))) {
writer->sink("\"\"\"", 3, writer->stream);
- write_text(writer, WRITE_LONG_STRING, node->buf, node->n_bytes, '\0');
+ write_text(writer, WRITE_LONG_STRING,
+ node->buf, node->n_bytes, '\0');
writer->sink("\"\"\"", 3, writer->stream);
} else {
writer->sink("\"", 1, writer->stream);