buf.append(BOLD_BEGIN);
} else {
buf.append(BOLD_END);
}
} else if (part instanceof CodePart) {
CodePart codePart = (CodePart)part;
if (codePart.isOpen()) {
flags.collapseSpaces = false;
} else {
flags.collapseSpaces = true;
}
} else if (part instanceof DocumentationContent) {