git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1330296 13f79535-47bb-0310-9956-ffa450edef68tags/fop-1_1rc1old
import java.io.IOException; | import java.io.IOException; | ||||
import java.io.Writer; | import java.io.Writer; | ||||
import java.util.List; | |||||
/** | /** | ||||
* <p>Models a section in an RTF document</p> | * <p>Models a section in an RTF document</p> | ||||
* @throws IOException for I/O problems | * @throws IOException for I/O problems | ||||
*/ | */ | ||||
protected void writeRtfSuffix() throws IOException { | 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 { | private void closeCurrentTable() throws IOException { |
documents. Example: the fix of marks layering will be such a case when it's done. | documents. Example: the fix of marks layering will be such a case when it's done. | ||||
--> | --> | ||||
<release version="FOP Trunk" date="TBD"> | <release version="FOP Trunk" date="TBD"> | ||||
<action context="Fonts" dev="GA" type="fix" fixes-bug="51484" due-to="Benjamin Riefenstahl"> | |||||
Don't write final /sect suffix in RTF if section is last section. | |||||
</action> | |||||
<action context="Fonts" dev="GA" type="fix" fixes-bug="53143"> | <action context="Fonts" dev="GA" type="fix" fixes-bug="53143"> | ||||
Ensure fonts are not loaded twice (redundantly). | Ensure fonts are not loaded twice (redundantly). | ||||
</action> | </action> |