From a9d8cd541266d969b8198c9fe7d02fbc74360dfe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Wed, 27 Nov 2013 13:44:00 +0100 Subject: [PATCH] update list style names to match (#4002) --- legi2odf/legi2odf.xsl | 6 +++--- odf2legi/odf2legi.py | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/legi2odf/legi2odf.xsl b/legi2odf/legi2odf.xsl index 30850f0..de34a88 100644 --- a/legi2odf/legi2odf.xsl +++ b/legi2odf/legi2odf.xsl @@ -205,19 +205,19 @@ - + - + - + diff --git a/odf2legi/odf2legi.py b/odf2legi/odf2legi.py index 91c2b7f..8030540 100644 --- a/odf2legi/odf2legi.py +++ b/odf2legi/odf2legi.py @@ -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'