XMLWriter.baseIndent

The text that will be written for each level of the tag depth when an indent is written.

struct XMLWriter(OR)
@property @safe const pure nothrow @nogc
string
baseIndent
()
if (
isOutputRange!(OR, char)
)

Examples

import std.array : appender;
{
    auto writer = xmlWriter(appender!string());
    assert(writer.baseIndent == "    ");
}
{
    auto writer = xmlWriter(appender!string(), "  ");
    assert(writer.baseIndent == "  ");
}
{
    auto writer = xmlWriter(appender!string(), "\t");
    assert(writer.baseIndent == "\t");
}

Meta