|
|
@@ -28,6 +28,7 @@ package org.apache.fop.render.rtf.rtflib.rtfdoc; |
|
|
|
|
|
|
|
import java.io.IOException; |
|
|
|
import java.io.Writer; |
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
/** |
|
|
|
* <p>Models a section in an RTF document</p> |
|
|
@@ -192,7 +193,11 @@ implements |
|
|
|
* @throws IOException for I/O problems |
|
|
|
*/ |
|
|
|
protected void writeRtfSuffix() throws IOException { |
|
|
|
writeControlWord("sect"); |
|
|
|
List siblings = parent.getChildren(); |
|
|
|
// write suffix /sect only if this section is not last section (see bug #51484) |
|
|
|
if ( siblings.listIterator ( siblings.indexOf ( this ) ) . hasNext() ) { |
|
|
|
writeControlWord("sect"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
private void closeCurrentTable() throws IOException { |