From cb54cfefe42d115a08e3c368a028b3f0b30485d4 Mon Sep 17 00:00:00 2001 From: Gabor Kelemen Date: Sun, 4 Dec 2016 23:29:36 +0100 Subject: 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 Tested-by: Andras Timar --- to-wiki/wikiconv2.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'to-wiki') 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': '', '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': '\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, } -- cgit