update list style names to match (#4002)
This commit is contained in:
parent
009e2d1932
commit
a9d8cd5412
|
@ -205,19 +205,19 @@
|
|||
</xsl:template>
|
||||
|
||||
<xsl:template match="orderedlist[@numeration = 'arabic']">
|
||||
<text:list text:style-name="Liste_20_Num">
|
||||
<text:list text:style-name="NumList">
|
||||
<xsl:apply-templates select="*"/>
|
||||
</text:list>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="orderedlist[@numeration = 'loweralpha']">
|
||||
<text:list text:style-name="Liste_20_Alpha">
|
||||
<text:list text:style-name="AlphaList">
|
||||
<xsl:apply-templates select="*"/>
|
||||
</text:list>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="itemizedlist">
|
||||
<text:list text:style-name="Liste_20_Puces">
|
||||
<text:list text:style-name="BulletList">
|
||||
<xsl:apply-templates select="*"/>
|
||||
</text:list>
|
||||
</xsl:template>
|
||||
|
|
|
@ -479,11 +479,11 @@ def handle_list(parent, elem):
|
|||
else:
|
||||
para = ET.SubElement(parent, 'para')
|
||||
|
||||
if style == 'Liste_20_Alpha' or num_format == 'a':
|
||||
if style in ('Liste_20_Alpha', 'AlphaList') or num_format == 'a':
|
||||
list_elem = ET.SubElement(para, 'orderedlist')
|
||||
list_elem.attrib['continuation'] = 'restarts'
|
||||
list_elem.attrib['numeration'] = 'loweralpha'
|
||||
elif style == 'Liste_20_Num' or num_format == '1':
|
||||
elif style in ('Liste_20_Num', 'NumList') or num_format == '1':
|
||||
list_elem = ET.SubElement(para, 'orderedlist')
|
||||
list_elem.attrib['continuation'] = 'restarts'
|
||||
list_elem.attrib['numeration'] = 'arabic'
|
||||
|
|
Reference in New Issue