diff options
author | Ben Longbons <b.r.longbons@gmail.com> | 2014-06-02 20:53:18 -0700 |
---|---|---|
committer | Ben Longbons <b.r.longbons@gmail.com> | 2014-06-02 20:53:18 -0700 |
commit | 8c8927900dcee15d4b3b507b863574b8f70c7307 (patch) | |
tree | 5ca609061c1d059ddf4704e85a94d1655733b0ab | |
parent | c6f51d80a42f0002fa71617c64952747f8fba281 (diff) | |
download | tools-8c8927900dcee15d4b3b507b863574b8f70c7307.tar.gz tools-8c8927900dcee15d4b3b507b863574b8f70c7307.tar.bz2 tools-8c8927900dcee15d4b3b507b863574b8f70c7307.tar.xz tools-8c8927900dcee15d4b3b507b863574b8f70c7307.zip |
Add bold support to the news generator
-rw-r--r-- | _news_colors.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/_news_colors.py b/_news_colors.py index 3fdf2b2..fd0782c 100644 --- a/_news_colors.py +++ b/_news_colors.py @@ -3,7 +3,7 @@ ## _news_colors.py - colors that can be used in news ## -## Copyright © 2012 Ben Longbons <b.r.longbons@gmail.com> +## Copyright © 2012-2014 Ben Longbons <b.r.longbons@gmail.com> ## ## This file is part of The Mana World (Athena server) ## @@ -76,6 +76,8 @@ def make_html_colors_dict(): '/ul': '</ul>', 'li' : '<li>', '/li': '</li>', + 'b' : '<b>', + '/b': '</b>', } for k, v in color_dict.items(): r[k] = '<font color="#%06x">' % v.rgb @@ -115,6 +117,8 @@ def make_forum_colors_dict(): '/ul': '[/list]', 'li' : '[*]', '/li': '', + 'b' : '[b]', + '/b': '[/b]', } for k, v in color_dict.items(): r[k] = '[color=#%06x]' % v.rgb @@ -205,3 +209,6 @@ def generate_txt_colors(): yield 'li', StackPusher(tag_stack, 'li', None, '* ') yield '/li', StackPopper(tag_stack, 'li', None, '') + + yield 'b', '##B' + yield '/b', '##b' |