Fixing a few problems

git-svn-id: svn://svn.code.sf.net/p/writer2latex/code/trunk@65 f0f2a975-2e09-46c8-9428-3b39399b9f3c
This commit is contained in:
henrikjust 2010-05-17 08:18:35 +00:00
parent 86e0b8d693
commit 7f4f47c98b
7 changed files with 13 additions and 6 deletions

View file

@ -426,7 +426,7 @@ public class Converter extends ConverterBase {
}
/* get inline text, ignoring any draw objects, footnotes, formatting and hyperlinks */
private String getPlainInlineText(Node node) {
protected String getPlainInlineText(Node node) {
StringBuffer buf = new StringBuffer();
Node child = node.getFirstChild();
while (child!=null) {

View file

@ -20,7 +20,7 @@
*
* All Rights Reserved.
*
* Version 1.2 (2010-05-13)
* Version 1.2 (2010-05-17)
*
*/
@ -580,7 +580,7 @@ public class TextConverter extends ConverterHelper {
// Add in external content. For single file output we include all level 1 headings + their target
// For multi-file output, the included heading levels depends on the split leve, and we don't include targets
if (nLevel<=Math.max(nSplit,1)) {
converter.addContentEntry(sLabel+(sLabel.length()>0 ? " " : "")+Misc.getPCDATA(onode), nLevel,
converter.addContentEntry(sLabel+(sLabel.length()>0 ? " " : "")+converter.getPlainInlineText(onode), nLevel,
nSplit==0 ? sTarget : null);
}

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- cleanxhtml.xml
<!-- cleanxhtml.xml 2010-05-17
This is a sample configuration file for Writer2xhtml.
The options are set to produce a clean XHTML file using
standard XHTML elements, using a custom style sheet for
@ -46,6 +46,9 @@ block-element="blockquote" block-css="(none)" element="p" css="(none)" />
<xhtml-style-map name="User entry" family="text" element="kbd" css="(none)" />
<xhtml-style-map name="Variable" family="text" element="var" css="(none)" />
<xhtml-style-map name="Footnote anchor" family="text" element="sup" css="(none)" />
<xhtml-style-map name="Endnote anchor" family="text" element="sup" css="(none)" />
<!-- map OOo hard formatting attributes to xhtml elements -->
<xhtml-style-map name="bold" family="attribute" element="b" css="(none)" />
<xhtml-style-map name="italics" family="attribute" element="i" css="(none)" />