From 996b4a112fb92d85f0877b8fbcb353586643ed84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Wed, 22 Oct 2014 16:39:43 +0200 Subject: [PATCH] do not set BulletChar for numbered lists (#5780) --- addon/Tabellio.py | 4 ++-- addon/description.xml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/addon/Tabellio.py b/addon/Tabellio.py index 9e8cc8b..e0cfb21 100644 --- a/addon/Tabellio.py +++ b/addon/Tabellio.py @@ -772,14 +772,14 @@ class ListStyleApply(unohelper.Base, XJobExecutor): found_bullet_fontname_prop = False log.append('style level %s as %s' % (level, style)) for i, prop in enumerate(props): - log.append(' initial prop: %s: %s' % (prop.Name, prop.Value)) + log.append(' initial prop: %s: %r' % (prop.Name, prop.Value)) if prop.Name == 'CharStyleName': if style in ('DASH', 'BULLET'): prop.Value = 'Bullet Symbols' else: prop.Value = 'Numbering Symbols' log.append(' -> changed to %r' % prop.Value) - elif prop.Name == 'BulletChar': + elif prop.Name == 'BulletChar' and style in ('DASH', 'BULLET'): found_bullet_char_prop = True if style == 'DASH': prop.Value = '-' diff --git a/addon/description.xml b/addon/description.xml index 6183a49..810b1ca 100644 --- a/addon/description.xml +++ b/addon/description.xml @@ -1,7 +1,7 @@ - +