diff options
Diffstat (limited to 'src/state.c')
-rw-r--r-- | src/state.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/state.c b/src/state.c index 735a8e4..0a4af18 100644 --- a/src/state.c +++ b/src/state.c @@ -797,7 +797,10 @@ lilv_state_write(LilvWorld* world, sratom_set_sink(sratom, uri, (SerdStatementSink)serd_writer_write_statement, (SerdEndSink)serd_writer_end_anon, - writer, false); + writer); + + // Write port values as pretty numbers + sratom_set_pretty_numbers(sratom, true); // Write port values for (uint32_t i = 0; i < state->num_values; ++i) { @@ -825,6 +828,9 @@ lilv_state_write(LilvWorld* world, serd_writer_end_anon(writer, &port); } + // Write property values with precise types + sratom_set_pretty_numbers(sratom, false); + // Write properties const SerdNode state_node = serd_node_from_string(SERD_BLANK, USTR("2state")); |