[gen] Bugfix in RTL languages support; [pod] xhtml2odt: bugfix in management of styles applied to inner p tags added within li tags.
This commit is contained in:
parent
1b375d387c
commit
bc505b335f
|
@ -4,4 +4,4 @@ ul li { background-image: url("ui/lirtl.gif");
|
|||
padding-right: 15px; padding-left: 0px}
|
||||
.portlet { border-right: none; border-left: 1px solid #5F7983 }
|
||||
.lang { margin-right: 0px; margin-left: 6px; }
|
||||
.cellGap { padding-left: 0.4em; }
|
||||
.cellGap { padding-left: 0.4em; padding-right: 0;}
|
||||
|
|
|
@ -6,6 +6,10 @@
|
|||
contextObj python: options['contextObj'];
|
||||
tool contextObj/getTool;
|
||||
layoutType python:'view';
|
||||
lang tool/getUserLanguage;
|
||||
dir python: tool.getLanguageDirection(lang);
|
||||
dleft python: (dir == 'ltr') and 'left' or 'right';
|
||||
dright python: (dir == 'ltr') and 'right' or 'left';
|
||||
phaseInfo python: contextObj.getAppyPhases(currentOnly=True, layoutType='view');
|
||||
phase phaseInfo/name;">
|
||||
<metal:callMacro use-macro="python: page.macros[macroName]"/>
|
||||
|
|
|
@ -147,8 +147,15 @@ class HtmlElement:
|
|||
self.elem, classValue=self.classAttr)
|
||||
if odtStyle and (odtStyle.name == 'podItemKeepWithNext'):
|
||||
itemStyle += '_kwn'
|
||||
env.dumpString(' %s:style-name="%s"' % (env.textNs,
|
||||
env.itemStyles[itemStyle]))
|
||||
styleName = env.itemStyles[itemStyle]
|
||||
else:
|
||||
# Check if a style must be applied on 'p' tags
|
||||
odtStyle = env.parser.caller.findStyle('p')
|
||||
if odtStyle:
|
||||
styleName = odtStyle.name
|
||||
else:
|
||||
styleName = env.itemStyles[itemStyle]
|
||||
env.dumpString(' %s:style-name="%s"' % (env.textNs, styleName))
|
||||
env.dumpString('>')
|
||||
self.tagsToClose.append(HtmlElement('p',{}))
|
||||
|
||||
|
|
Loading…
Reference in a new issue