Function yaml_emitter_set_indent

Synopsis

#include <include/yaml.h>

void yaml_emitter_set_indent(yaml_emitter_t *emitter, int indent)

Description

Set the indentation increment.

Parameters:

[ in,out ] emitter - An emitter object.

[ in ] indent - The indentation increment (1 < . < 10).

Set the indentation increment.

Source

Lines 535-541 in src/api.c. Line 1875 in include/yaml.h.

YAML_DECLARE(void)
yaml_emitter_set_indent(yaml_emitter_t *emitter, int indent)
{
    assert(emitter);    /* Non-NULL emitter object expected. */

    emitter->best_indent = (1 < indent && indent < 10) ? indent : 2;
}





Add Discussion as Guest

Log in to DocsForge