to-wiki/wikiconv2.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-)
New commits: commit 3d9e4e094a7ebd9f16c931fcdbf95d144f80b2b0 Author: Gabor Kelemen <[email protected]> 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 <[email protected]> Tested-by: Andras Timar <[email protected]> Reviewed-on: https://gerrit.libreoffice.org/32316 Reviewed-by: Adolfo Jayme Barrientos <[email protected]> Tested-by: Adolfo Jayme Barrientos <[email protected]> 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, _______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
