From 8c8927900dcee15d4b3b507b863574b8f70c7307 Mon Sep 17 00:00:00 2001 From: Ben Longbons Date: Mon, 2 Jun 2014 20:53:18 -0700 Subject: Add bold support to the news generator --- _news_colors.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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 +## Copyright © 2012-2014 Ben Longbons ## ## This file is part of The Mana World (Athena server) ## @@ -76,6 +76,8 @@ def make_html_colors_dict(): '/ul': '', 'li' : '
  • ', '/li': '
  • ', + 'b' : '', + '/b': '', } for k, v in color_dict.items(): r[k] = '' % 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' -- cgit v1.2.3-70-g09d2