private int UpdateIndent(int oldIndent, XmlUtil xmlUtil, XmlUtilWriter utilWriter, int parentLinePosition) {
int indent = oldIndent;
if (xmlUtil.Reader.NodeType == XmlNodeType.Element && utilWriter.IsLastLineBlank) {
int childLinePosition = xmlUtil.TrueLinePosition;
if (parentLinePosition < childLinePosition && childLinePosition <= parentLinePosition + MAX_INDENT) {
indent = childLinePosition - parentLinePosition;
}
}
return indent;
}