aboutsummaryrefslogtreecommitdiffstats
path: root/src/writer.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-03-27 03:40:32 +0000
committerDavid Robillard <d@drobilla.net>2012-03-27 03:40:32 +0000
commit1a095b4e8ab0050d792e5bf6b72bf10a4207b1dc (patch)
tree2330b90f25bad0d2c745f6ef323ccad97257ecb5 /src/writer.c
parent91ae836711ba3df5f44407dadcadb0bd9ac53621 (diff)
downloadserd-1a095b4e8ab0050d792e5bf6b72bf10a4207b1dc.tar.gz
serd-1a095b4e8ab0050d792e5bf6b72bf10a4207b1dc.tar.bz2
serd-1a095b4e8ab0050d792e5bf6b72bf10a4207b1dc.zip
Don't emit a ; at the end of anonymous descriptions.
git-svn-id: http://svn.drobilla.net/serd/trunk@339 490d8e77-9747-427b-9fa3-0b8f29cee8a0
Diffstat (limited to 'src/writer.c')
-rw-r--r--src/writer.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/writer.c b/src/writer.c
index 0870c785..b6dcecc1 100644
--- a/src/writer.c
+++ b/src/writer.c
@@ -66,7 +66,7 @@ static const SepRule rules[] = {
{ NULL, 0, 0, 1, 0 },
{ " ", 1, 0, 0, 0 },
{ "[", 1, 0, 1, 1 },
- { "]", 1, 0, 0, 0 },
+ { "]", 1, 1, 0, 0 },
{ "(", 1, 0, 0, 0 },
{ NULL, 1, 0, 1, 0 },
{ ")", 1, 1, 0, 0 },
@@ -595,7 +595,6 @@ serd_writer_end_anon(SerdWriter* writer,
}
assert(writer->indent > 0);
--writer->indent;
- write_sep(writer, SEP_END_P);
write_sep(writer, SEP_ANON_END);
reset_context(writer, true);
writer->context = *anon_stack_top(writer);