From 95f0ea48952e49eb23f1404b5e5378b9f0f5631a Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Wed, 11 Nov 2020 02:51:24 -0700 Subject: [PATCH] yaml writer: implement type hinting --- libifupdown/yaml-writer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libifupdown/yaml-writer.c b/libifupdown/yaml-writer.c index 8b2c589..07d3751 100644 --- a/libifupdown/yaml-writer.c +++ b/libifupdown/yaml-writer.c @@ -34,7 +34,7 @@ lif_yaml_write_node(struct lif_yaml_node *node, FILE *f, size_t indent) switch (node->value_type) { case LIF_YAML_STRING: - fprintf(f, "%s\n", node->value); + fprintf(f, "!!str %s\n", node->value); break; case LIF_YAML_OBJECT: fprintf(f, "\n");