Fixed wrong paragraph styles priorities
This commit is contained in:
parent
0babf899ee
commit
a4d510caa7
10 changed files with 16 additions and 16 deletions
|
@ -572,8 +572,8 @@ public class TextParser extends Parser {
|
|||
// Apply style
|
||||
StyleInfo info = new StyleInfo();
|
||||
info.sTagName = "h" + nLevel;
|
||||
getHeadingSP().readParentStyle(nLevel, sStyleName, info);
|
||||
getHeadingSP().applyStyle(nLevel, sStyleName, info);
|
||||
getHeadingSP().readParentStyle(nLevel, sStyleName, info);
|
||||
|
||||
// add root element
|
||||
Element heading = converter.createElement(info.sTagName);
|
||||
|
|
|
@ -73,8 +73,8 @@ public abstract class StyleWithPropertiesParser extends StyleParser {
|
|||
applyDirection(style, info);
|
||||
if (style.isAutomatic()) {
|
||||
// Apply parent style + hard formatting
|
||||
readStyle(style.getParentName(), info);
|
||||
applyProperties(style, info.props, false);
|
||||
readStyle(style.getParentName(), info);
|
||||
} else {
|
||||
|
||||
String displayName = style.getDisplayName();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue