From 4661e42769f0f826aa9c6a566559d92452fa91db Mon Sep 17 00:00:00 2001 From: HomeWorld Date: Fri, 26 Nov 2010 13:14:59 +0200 Subject: [PATCH] Strip color information from item desc, fixes ticket #307 --- gui/itemStats.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gui/itemStats.py b/gui/itemStats.py index e070b5a97..d20495d87 100644 --- a/gui/itemStats.py +++ b/gui/itemStats.py @@ -18,10 +18,11 @@ #=============================================================================== import wx +import re import gui.mainFrame import bitmapLoader import sys -import wx.lib.mixins.listctrl as listmix +import wx.lib.mixins.listctrl as listmix import wx.html from eos.types import Ship, Module, Skill, Booster, Implant, Drone from util import formatAmount @@ -172,8 +173,9 @@ class ItemDescription ( wx.Panel ): self.description = wx.html.HtmlWindow(self) - desc = item.description.replace("\r","
") + desc = re.sub("<( *)font( *)color( *)=(.*)>", "", desc) + desc = re.sub("<( *)/( *)font( *)>","", desc) self.description.SetPage(desc)