[blam] Item: Collapse whitespace in title



commit 234faf308c53884532f189f6bc0ca7b63b51585c
Author: Carlos Martín Nieto <carlos cmartin tk>
Date:   Sun Mar 27 21:43:36 2011 +0200

    Item: Collapse whitespace in title
    
    Signed-off-by: Carlos Martín Nieto <carlos cmartin tk>

 src/Item.cs |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/Item.cs b/src/Item.cs
index ec82c5a..50756fa 100644
--- a/src/Item.cs
+++ b/src/Item.cs
@@ -82,6 +82,9 @@ namespace Imendio.Blam {
                     this.Id = item.Id;
             }
 
+            /* Newlines aren't allowed in titles */
+            this.Title = new TextSyndicationContent(HtmlUtils.CollapseWhitespace(item.Title.Text));
+
             if(item.Content != null){
                 /* The feed formatters only store the summary */
                 this.Summary = item.Content as TextSyndicationContent;



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