diff options
author | Andras Timar <andras.timar@collabora.com> | 2016-06-21 22:29:36 +0200 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2016-06-21 22:29:36 +0200 |
commit | d9e375bb5271e34a84f176d471ca9d4d15071ccc (patch) | |
tree | 90ccf44738305bb2fae9edb0d6d991d446a3f6b1 /to-wiki | |
parent | e84bf1290365b9fd331f06cd1c03bf11c1f4cc1e (diff) |
handle <item type="code">
Change-Id: Id6b828ffdd45530af5fda09046b85cd9fe21eecb
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 456810d38c..5796ffa51e 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, |