[PATCH] Remove markup from text before printing it in cmdline mode (#470253).

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
 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

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux