[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).



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