aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--src/writer.c12
-rw-r--r--wscript3
3 files changed, 16 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index 46e32706..5337a87a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+serd (UNRELEASED) unstable; urgency=low
+
+ * Fix pretty printing of successive blank descriptions, i.e. "] , ["
+
+ -- David Robillard <d@drobilla.net> UNRELEASED
+
serd (0.4.2) unstable; urgency=low
* Fix compilation issues on some systems
diff --git a/src/writer.c b/src/writer.c
index 137fed93..cb68ed46 100644
--- a/src/writer.c
+++ b/src/writer.c
@@ -334,11 +334,17 @@ serd_writer_write_statement(SerdWriter* writer,
if (serd_node_equals(subject, &writer->context.subject)) {
if (serd_node_equals(predicate, &writer->context.predicate)) {
// Abbreviate S P
- ++writer->indent;
- serd_writer_write_delim(writer, ',');
+ if ((flags & SERD_ANON_O_BEGIN)) {
+ writer->sink(" , ", 3, writer->stream); // ] , [
+ } else {
+ ++writer->indent;
+ serd_writer_write_delim(writer, ',');
+ }
write_node(writer, object, object_datatype, object_lang,
FIELD_OBJECT, flags);
- --writer->indent;
+ if (!(flags & SERD_ANON_O_BEGIN)) {
+ --writer->indent;
+ }
} else {
// Abbreviate S
if (writer->context.predicate.buf) {
diff --git a/wscript b/wscript
index c17742c3..433d291d 100644
--- a/wscript
+++ b/wscript
@@ -1,4 +1,3 @@
-
#!/usr/bin/env python
import filecmp
import glob
@@ -10,7 +9,7 @@ from waflib.extras import autowaf as autowaf
import waflib.Logs as Logs, waflib.Options as Options
# Version of this package (even if built as a child)
-SERD_VERSION = '0.4.2'
+SERD_VERSION = '0.4.3'
SERD_MAJOR_VERSION = '0'
# Library version (UNIX style major, minor, micro)