[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[PATCH] Remove markup from text before printing it in cmdline mode (#470253).
- From: Chris Lumens <clumens redhat com>
- To: anaconda-devel-list redhat com
- Cc:
- Subject: [PATCH] Remove markup from text before printing it in cmdline mode (#470253).
- Date: Fri, 5 Dec 2008 14:43:11 -0500
---
cmdline.py | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/cmdline.py b/cmdline.py
index 3dbf172..4e90fc3 100644
--- a/cmdline.py
+++ b/cmdline.py
@@ -25,6 +25,7 @@ import signal
import parted
from constants import *
from flags import flags
+from iutil import strip_markup
import gettext
_ = lambda x: gettext.ldgettext("anaconda", x)
@@ -166,8 +167,9 @@ class progressDisplay:
def set_text(self, txt):
pass
def set_label(self, txt):
- if txt != self.display:
- self.display = txt
+ stripped = strip_markup(txt)
+ if stripped != self.display:
+ self.display = stripped
print(self.display)
def setupProgressDisplay(anaconda):
--
1.6.0.3
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]