diff options
author | Jan Holesovsky <kendy@suse.cz> | 2010-11-12 13:12:54 +0100 |
---|---|---|
committer | Jan Holesovsky <kendy@suse.cz> | 2010-11-12 13:12:54 +0100 |
commit | 9c512f089b00421e5353a0318e496ab2783f7ca1 (patch) | |
tree | fa515501a857a98e1f3149c170bc0bc7bc4bd30b /helpcontent2/to-wiki | |
parent | 85613f119bc3d60e1ab067b4b4c370c3e0fc1321 (diff) |
wikihelp: Handle 'code' paragraphs.
Diffstat (limited to 'helpcontent2/to-wiki')
-rwxr-xr-x | helpcontent2/to-wiki/wikiconv2.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/helpcontent2/to-wiki/wikiconv2.py b/helpcontent2/to-wiki/wikiconv2.py index b036b81422..6a757830fa 100755 --- a/helpcontent2/to-wiki/wikiconv2.py +++ b/helpcontent2/to-wiki/wikiconv2.py @@ -18,7 +18,8 @@ replace_element = \ } replace_paragraph_role = \ - {'start':{'heading1': '= ', + {'start':{'code': '<code>', + 'heading1': '= ', 'heading2': '== ', 'heading3': '=== ', 'heading4': '==== ', @@ -32,7 +33,8 @@ replace_paragraph_role = \ 'tip': '{{Tip|', 'warning': '{{Warning|', }, - 'end':{'heading1': ' =\n\n', + 'end':{'code': '</code>\n\n', + 'heading1': ' =\n\n', 'heading2': ' ==\n\n', 'heading3': ' ===\n\n', 'heading4': ' ====\n\n', |