[blam] Item: Collapse whitespace in title
- From: Carlos Martín Nieto <cmartin src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [blam] Item: Collapse whitespace in title
- Date: Sun, 27 Mar 2011 19:43:38 +0000 (UTC)
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]