diff options
author | Chris Lumens <clumens@redhat.com> | 2008-12-05 14:39:05 -0500 |
---|---|---|
committer | Chris Lumens <clumens@redhat.com> | 2008-12-05 15:33:17 -0500 |
commit | 6bd08c935dd49f229df3f93016d159bc9422e8b6 (patch) | |
tree | 560b3d21d64160d0a6c4b8dc0e2ebef9acbc72ab /cmdline.py | |
parent | ed0a956f8960f21cc6958f7b1b0061e2b3c8e2c6 (diff) | |
download | anaconda-6bd08c935dd49f229df3f93016d159bc9422e8b6.tar.gz anaconda-6bd08c935dd49f229df3f93016d159bc9422e8b6.tar.xz anaconda-6bd08c935dd49f229df3f93016d159bc9422e8b6.zip |
Remove markup from text before printing it in cmdline mode (#470253).
Diffstat (limited to 'cmdline.py')
-rw-r--r-- | cmdline.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/cmdline.py b/cmdline.py index 3dbf17228..4e90fc3db 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): |