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

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


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

New commits:
commit 7de8eed8b1b908c9e37f6e2499f37768a2354d27
Author: Gabor Kelemen <kelemeng at gnome.hu>
Date:   Sun Dec 4 23:25:22 2016 +0100

    Handle 'acronym' item type
    
    This was throwing an exception and not generating a wiki page
    Format with a simple italic text for now - better ideas welcome!
    
    Change-Id: I1b08c6b6dd2e96eef3cac4808fe23f911dc06cd3
    Reviewed-on: https://gerrit.libreoffice.org/31609
    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 b239419..1910828 100755
--- a/to-wiki/wikiconv2.py
+++ b/to-wiki/wikiconv2.py
@@ -996,7 +996,8 @@ class Switch(SwitchInline):
 
 class Item(ElementBase):
     replace_type = \
-            {'start':{'code': '<code>',
+            {'start':{'acronym' : '\'\'',
+                      'code': '<code>',
                       'input': '<code>',
                       'keycode': '{{KeyCode|',
                       'tasto': '{{KeyCode|',
@@ -1008,7 +1009,8 @@ class Item(ElementBase):
                       'productname': '',
                       'unknown': '<code>'
                      },
-             'end':{'code': '</code>',
+             'end':{'acronym' : '\'\'',
+                    'code': '</code>',
                     'input': '</code>',
                     'keycode': '}}',
                     'tasto': '}}',
@@ -1020,7 +1022,8 @@ class Item(ElementBase):
                     'productname': '',
                     'unknown': '</code>'
                    },
-             'templ':{'code': False,
+             'templ':{'acronym': False,
+                      'code': False,
                       'input': False,
                       'keycode': True,
                       'tasto': True,


More information about the Libreoffice-commits mailing list