diff options
author | Gabor Kelemen <kelemeng@gnome.hu> | 2016-12-04 23:29:36 +0100 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2016-12-14 22:28:50 +0000 |
commit | cb54cfefe42d115a08e3c368a028b3f0b30485d4 (patch) | |
tree | f18d6efc684673b57dce23be531a9d8832aa74ab | |
parent | 7de8eed8b1b908c9e37f6e2499f37768a2354d27 (diff) |
tdf#104359 (partial) Handle ol_item and ul_item
This was throwing an exception and not generating a wiki page
Change-Id: Ic7d362cf65507aa8d90335c7f0ff3b5d8ea6fe58
Reviewed-on: https://gerrit.libreoffice.org/31610
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Andras Timar <andras.timar@collabora.com>
-rwxr-xr-x | to-wiki/wikiconv2.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/to-wiki/wikiconv2.py b/to-wiki/wikiconv2.py index 1910828616..93f72eb954 100755 --- a/to-wiki/wikiconv2.py +++ b/to-wiki/wikiconv2.py @@ -46,6 +46,7 @@ replace_paragraph_role = \ 'logocode': '<code>', 'note': '{{Note|1=', 'null': '', # special paragraph for Variable, CaseInline, etc. + 'ol_item': '', 'paragraph': '', 'related': '', # used only in one file, probably in error? 'relatedtopics': '', # used only in one file, probably in error? @@ -62,6 +63,7 @@ replace_paragraph_role = \ 'tablenexttip': '\n{{Tip|1=', 'tablenextwarning': '\n{{Warning|1=', 'tip': '{{Tip|1=', + 'ul_item': '', 'variable': '', 'warning': '{{Warning|1=', }, @@ -82,6 +84,7 @@ replace_paragraph_role = \ 'logocode': '</code>\n\n', 'note': '}}\n\n', 'null': '', # special paragraph for Variable, CaseInline, etc. + 'ol_item': '', 'paragraph': '\n\n', 'related': '\n\n', # used only in one file, probably in error? 'relatedtopics': '\n\n', # used only in one file, probably in error? @@ -98,6 +101,7 @@ replace_paragraph_role = \ 'tablenexttip': '}}\n\n', 'tablenextwarning': '}}\n\n', 'tip': '}}\n\n', + 'ul_item': '', 'variable': '', 'warning': '}}\n\n', }, @@ -118,6 +122,7 @@ replace_paragraph_role = \ 'logocode': False, 'note': True, 'null': False, + 'ol_item': False, 'paragraph': False, 'related': False, 'relatedtopics': False, @@ -134,6 +139,7 @@ replace_paragraph_role = \ 'tablenexttip': True, 'tablenextwarning': True, 'tip': True, + 'ul_item': False, 'variable': False, 'warning': True, } |