/** @see org.apache.fop.fo.FONode#endOfNode() */
protected void endOfNode() throws FOPException {
flushText();
- if (getNameId() != FO_LEADER) {
- getFOEventHandler().whiteSpaceHandler
- .handleWhiteSpace(this, currentTextNode);
- }
+ getFOEventHandler().whiteSpaceHandler
+ .handleWhiteSpace(this, currentTextNode);
super.endOfNode();
}
if (currentTextNode == null) {
currentTextNode = child;
}
- } else if (getNameId() != FO_LEADER) {
+ } else {
// handle white-space for all text up to here
getFOEventHandler().whiteSpaceHandler
.handleWhiteSpace(this, currentTextNode, child);