Fix: apply charStyle for notes character
This commit is contained in:
parent
89fce0e0c2
commit
3a20da2b47
1 changed files with 5 additions and 1 deletions
|
@ -31,7 +31,6 @@ import java.util.Enumeration;
|
||||||
//import writer2latex.latex.util.Info;
|
//import writer2latex.latex.util.Info;
|
||||||
import writer2latex.office.OfficeReader;
|
import writer2latex.office.OfficeReader;
|
||||||
import writer2latex.office.StyleWithProperties;
|
import writer2latex.office.StyleWithProperties;
|
||||||
import writer2latex.util.CSVList;
|
|
||||||
import writer2latex.xhtml.Converter;
|
import writer2latex.xhtml.Converter;
|
||||||
import writer2latex.xhtml.StyleInfo;
|
import writer2latex.xhtml.StyleInfo;
|
||||||
import writer2latex.xhtml.XhtmlConfig;
|
import writer2latex.xhtml.XhtmlConfig;
|
||||||
|
@ -65,6 +64,7 @@ public abstract class StyleWithPropertiesParser extends StyleParser {
|
||||||
public void readStyle(String sStyleName, StyleInfo info) {
|
public void readStyle(String sStyleName, StyleInfo info) {
|
||||||
StyleWithProperties style = (StyleWithProperties) getStyles().getStyle(sStyleName);
|
StyleWithProperties style = (StyleWithProperties) getStyles().getStyle(sStyleName);
|
||||||
if (style == null) {
|
if (style == null) {
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
info.sTagName = getStyleTag();
|
info.sTagName = getStyleTag();
|
||||||
|
@ -94,6 +94,10 @@ public abstract class StyleWithPropertiesParser extends StyleParser {
|
||||||
// Generate class name from display name
|
// Generate class name from display name
|
||||||
styleNames.addName(displayName);
|
styleNames.addName(displayName);
|
||||||
info.sClass = getClassNamePrefix() + styleNames.getName(displayName);
|
info.sClass = getClassNamePrefix() + styleNames.getName(displayName);
|
||||||
|
if (bConvertHard) {
|
||||||
|
applyProperties(style, info.props, false);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue