A few w2x fixes

git-svn-id: svn://svn.code.sf.net/p/writer2latex/code/trunk@71 f0f2a975-2e09-46c8-9428-3b39399b9f3c
This commit is contained in:
henrikjust 2010-07-02 11:12:11 +00:00
parent a799097caa
commit f6ce71c6a5
5 changed files with 22 additions and 9 deletions

View file

@ -20,7 +20,7 @@
*
* All Rights Reserved.
*
* Version 1.2 (2010-06-20)
* Version 1.2 (2010-07-02)
*
*/
@ -1621,11 +1621,22 @@ public class TextConverter extends ConverterHelper {
int n = endnotes.size();
if (n>0) {
if (nSplit>0) { hnode = converter.nextOutFile(); }
String sHeading = config.getEndnotesHeading();
if (sHeading.length()>0) {
Element heading = converter.createElement("h1");
hnode.appendChild(heading);
heading.appendChild(converter.createTextNode(sHeading));
// Add to external content.
if (nSplit>0) {
converter.addContentEntry(sHeading, 1, null);
}
else {
//For single output file we need a target
converter.addTarget(heading,"endnotes");
converter.addContentEntry(sHeading, 1, "endnotes");
}
}
for (int i=0; i<n; i++) {
Node endnote = endnotes.get(i);