[Libreoffice-commits] help.git: to-wiki/wikiconv2.py

Gabor Kelemen kelemeng at gnome.hu
Wed Dec 14 22:29:16 UTC 2016


 to-wiki/wikiconv2.py |    6 ++++++
 1 file changed, 6 insertions(+)

New commits:
commit cb54cfefe42d115a08e3c368a028b3f0b30485d4
Author: Gabor Kelemen <kelemeng at gnome.hu>
Date:   Sun Dec 4 23:29:36 2016 +0100

    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 at collabora.com>
    Tested-by: Andras Timar <andras.timar at collabora.com>

diff --git a/to-wiki/wikiconv2.py b/to-wiki/wikiconv2.py
index 1910828..93f72eb 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,
            }


More information about the Libreoffice-commits mailing list