summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabor Kelemen <kelemeng@gnome.hu>2016-12-04 23:29:36 +0100
committerGabor Kelemen <kelemeng@ubuntu.com>2016-12-24 23:31:56 +0000
commit019d305ec0f0402d71910a3997ddebaf94df8dd2 (patch)
tree142e4bccb822ca11244146b84852d23251c03ed7
parent422cd594a106151a3142c150ad4fcda75ffad9b2 (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> Reviewed-on: https://gerrit.libreoffice.org/32312 Reviewed-by: Olivier Hallot <olivier.hallot@edx.srv.br> Tested-by: Olivier Hallot <olivier.hallot@edx.srv.br>
-rwxr-xr-xto-wiki/wikiconv2.py6
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,
}