diff options
author | Gabor Kelemen <kelemeng@gnome.hu> | 2016-12-04 23:25:22 +0100 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2016-12-14 22:13:35 +0000 |
commit | 7de8eed8b1b908c9e37f6e2499f37768a2354d27 (patch) | |
tree | 308fce916912ee1bc40449bda13b16090f1dfe85 /to-wiki | |
parent | 96a84b25e3ae012661a68da1ecdbbf0d94089d9b (diff) |
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@collabora.com>
Tested-by: Andras Timar <andras.timar@collabora.com>
Diffstat (limited to 'to-wiki')
-rwxr-xr-x | to-wiki/wikiconv2.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/to-wiki/wikiconv2.py b/to-wiki/wikiconv2.py index b239419293..1910828616 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, |