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

Andras Timar andras.timar at collabora.com
Tue Jun 21 20:30:19 UTC 2016


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

New commits:
commit d9e375bb5271e34a84f176d471ca9d4d15071ccc
Author: Andras Timar <andras.timar at collabora.com>
Date:   Tue Jun 21 22:29:36 2016 +0200

    handle <item type="code">
    
    Change-Id: Id6b828ffdd45530af5fda09046b85cd9fe21eecb

diff --git a/to-wiki/wikiconv2.py b/to-wiki/wikiconv2.py
index 456810d..5796ffa 100755
--- a/to-wiki/wikiconv2.py
+++ b/to-wiki/wikiconv2.py
@@ -991,7 +991,8 @@ class Switch(SwitchInline):
 
 class Item(ElementBase):
     replace_type = \
-            {'start':{'input': '<code>',
+            {'start':{'code': '<code>',
+                      'input': '<code>',
                       'keycode': '{{KeyCode|',
                       'tasto': '{{KeyCode|',
                       'litera': '<code>',
@@ -1002,7 +1003,8 @@ class Item(ElementBase):
                       'productname': '',
                       'unknown': '<code>'
                      },
-             'end':{'input': '</code>',
+             'end':{'code': '</code>',
+                    'input': '</code>',
                     'keycode': '}}',
                     'tasto': '}}',
                     'litera': '</code>',
@@ -1013,7 +1015,8 @@ class Item(ElementBase):
                     'productname': '',
                     'unknown': '</code>'
                    },
-             'templ':{'input': False,
+             'templ':{'code': False,
+                      'input': False,
                       'keycode': True,
                       'tasto': True,
                       'litera': False,


More information about the Libreoffice-commits mailing list