[gcompris/gcomprismusic] corrected the newline error



commit fafca43c041440a5c2dec1366befa3374abfce6e
Author: Karthik Subramanian <itskarthik s gmail com>
Date:   Mon Jun 6 14:57:30 2011 +0530

    corrected the newline error

 src/rhymes-activity/rhymes.py |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/rhymes-activity/rhymes.py b/src/rhymes-activity/rhymes.py
index 22ba257..3ed3ca2 100644
--- a/src/rhymes-activity/rhymes.py
+++ b/src/rhymes-activity/rhymes.py
@@ -149,7 +149,9 @@ class Gcompris_rhymes:
     self.rhymetext.tv.modify_base(gtk.STATE_NORMAL, gtk.gdk.color_parse('grey'))
 
     self.rhymetext.sw.add(self.rhymetext.tv)     
-    self.rhymetext.tb.set_text(str(self.dataset.get(str(calledrhyme),"text"))) 
+    text = self.dataset.get(str(calledrhyme),"text")
+    text = text.replace("\\n", "\n")
+    self.rhymetext.tb.set_text(text) 
     self.rhymetext.tv.set_wrap_mode(gtk.WRAP_WORD)
 
 #Create a goocanvas widget to hold the scrolled window



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