[banshee] Show multi-line strings on one line in the ColumnCellText (bgo#591802)



commit 9c986d97770e204a54d5741697348d449eefeb99
Author: Alexander Kojevnikov <alexander kojevnikov com>
Date:   Thu Sep 10 22:41:57 2009 +1000

    Show multi-line strings on one line in the ColumnCellText (bgo#591802)

 .../Hyena.Gui/Hyena.Data.Gui/ColumnCellText.cs     |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/Libraries/Hyena.Gui/Hyena.Data.Gui/ColumnCellText.cs b/src/Libraries/Hyena.Gui/Hyena.Data.Gui/ColumnCellText.cs
index 484a292..f44cc28 100644
--- a/src/Libraries/Hyena.Gui/Hyena.Data.Gui/ColumnCellText.cs
+++ b/src/Libraries/Hyena.Gui/Hyena.Data.Gui/ColumnCellText.cs
@@ -108,6 +108,7 @@ namespace Hyena.Data.Gui
         private void UpdateLayout (Pango.Layout layout, string text)
         {
             string final_text = GetFormattedText (text);
+            final_text = final_text.Replace ("\r\n", "\x20").Replace ("\n", "\x20").Replace ("\r", "\x20");
             if (use_markup) {
                 layout.SetMarkup (final_text);
             } else {



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