diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2012-06-05 21:19:56 +0100 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2012-06-05 21:19:56 +0100 |
commit | 222b440e3d85e4a45a47f79f017ff53dbcb78276 (patch) | |
tree | f4d38da511ac4a013314bbd3bb47139e247df670 /lib/xmltree.h | |
parent | d219296cacb644eccbbb8bbd58d02eaa89904c74 (diff) |
Add xt_to_string_i() and use it to get indentation back in saved settings.
Also, use it in xt_print() instead of replicating most of xt_to_string()
in it. This changed four-space indents into tabs but oh well, we'll live.
Diffstat (limited to 'lib/xmltree.h')
-rw-r--r-- | lib/xmltree.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/xmltree.h b/lib/xmltree.h index 5a0dbc8e..cfd3361c 100644 --- a/lib/xmltree.h +++ b/lib/xmltree.h @@ -83,6 +83,7 @@ int xt_handle( struct xt_parser *xt, struct xt_node *node, int depth ); void xt_cleanup( struct xt_parser *xt, struct xt_node *node, int depth ); struct xt_node *xt_from_string( const char *in ); char *xt_to_string( struct xt_node *node ); +char *xt_to_string_i( struct xt_node *node ); void xt_print( struct xt_node *node ); struct xt_node *xt_dup( struct xt_node *node ); void xt_free_node( struct xt_node *node ); |