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

[PATCH] In text mode we have to treat strings and lists separately while printing them (#674322)



---
 text.py |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/text.py b/text.py
index bd694e3..e07553d 100644
--- a/text.py
+++ b/text.py
@@ -304,7 +304,14 @@ class InstallInterface(InstallInterfaceBase):
                               default=None, custom_icon=None,
                               custom_buttons=[], expanded=False):
         t = TextboxReflowed(60, text, maxHeight=8)
-        lt = Textbox(60, 6, "\n".join(longText), scroll=1, wrap=1)
+        
+        # if it is a string, just print it as it is (#674322)
+        if isinstance(longText, basestring):
+            lt = Textbox(60, 6, longText, scroll=1, wrap=1)
+        # if the argument is anything else we have to join it together (#654074)
+        else:
+            lt = Textbox(60, 6, "\n".join(longText), scroll=1, wrap=1)
+            
         g = GridFormHelp(self.screen, title, help, 1, 3)
         g.add(t, 0, 0)
         g.add(lt, 0, 1, padding = (0, 1, 0, 1))
-- 
1.7.3.5


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