[Libreoffice-commits] help.git: Branch 'libreoffice-5-3' - to-wiki/wikiconv2.py

Gabor Kelemen kelemeng at gnome.hu
Wed Dec 21 23:15:47 UTC 2016


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

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

    tdf#104850 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>
    Reviewed-on: https://gerrit.libreoffice.org/32316
    Reviewed-by: Adolfo Jayme Barrientos <fitojb at ubuntu.com>
    Tested-by: Adolfo Jayme Barrientos <fitojb at ubuntu.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