try {
fstack.setTextMode(textmode);
if (!walker.isAllText() && fstack.getPadBetween() != null) {
// we need to newline/indent
final String indent = fstack.getPadBetween();
printText(out, fstack, new Text(indent));
}
printContent(out, fstack, nstack, walker);
if (!walker.isAllText() && fstack.getPadLast() != null) {
// we need to newline/indent
final String indent = fstack.getPadLast();
printText(out, fstack, new Text(indent));
}
} finally {
fstack.pop();
}
}