diff options
author | David Robillard <d@drobilla.net> | 2018-07-05 21:01:12 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-04-13 19:15:32 +0200 |
commit | 75af0505f94bb148cd7b4d9004dec824fa13e6c9 (patch) | |
tree | b8b8c8c9c14b23461692dcf7d9a29d6474b63627 /src/writer.c | |
parent | 81f46794f4f1cc2f2da3eab3fa98c399d01715ef (diff) | |
download | serd-75af0505f94bb148cd7b4d9004dec824fa13e6c9.tar.gz serd-75af0505f94bb148cd7b4d9004dec824fa13e6c9.tar.bz2 serd-75af0505f94bb148cd7b4d9004dec824fa13e6c9.zip |
Simplify writer style options
Diffstat (limited to 'src/writer.c')
-rw-r--r-- | src/writer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/writer.c b/src/writer.c index a5a2b663..17b11008 100644 --- a/src/writer.c +++ b/src/writer.c @@ -514,7 +514,7 @@ write_uri_node(SerdWriter* const writer, return sink("a", 1, writer) == 1; } else if (supports_abbrev(writer) && !strcmp(node_str, NS_RDF "nil")) { return sink("()", 2, writer) == 2; - } else if (has_scheme && (writer->style & SERD_STYLE_CURIED) && + } else if (has_scheme && supports_abbrev(writer) && serd_env_qualify_in_place(writer->env, node, &prefix, &suffix) && is_name(serd_node_get_string(prefix), serd_node_get_length(prefix)) && is_name(suffix.buf, suffix.len)) { @@ -525,7 +525,7 @@ write_uri_node(SerdWriter* const writer, } write_sep(writer, SEP_URI_BEGIN); - if (writer->style & SERD_STYLE_RESOLVED) { + if (serd_env_get_base_uri(writer->env)) { const SerdURI* base_uri = serd_env_get_parsed_base_uri(writer->env); SerdURI uri, abs_uri; serd_uri_parse(node_str, &uri); |