} else if (!indentless) indent += config.indentSize;
}
void expectDocumentStart (boolean first) throws IOException {
if (event.type == DOCUMENT_START) {
DocumentStartEvent ev = (DocumentStartEvent)event;
boolean implicit = first && !ev.isExplicit && !config.canonical && ev.version == null && ev.tags == null
&& !checkEmptyDocument();
if (!implicit) {
writer.writeIndent(indent);
writer.writeIndicator("--- ", true, true, false);