W3C home > Mailing lists > Public > www-validator-cvs@w3.org > October 2009

2006/unicorn/src/org/w3c/unicorn/response/impl OldMessageXBeans.java,1.5,1.6 OldContextXBeans.java,1.1,1.2

From: Thomas Gambet via cvs-syncmail <cvsmail@w3.org>
Date: Thu, 22 Oct 2009 09:49:59 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1N0uIx-0003UN-NI@lionel-hutz.w3.org>
Update of /sources/public/2006/unicorn/src/org/w3c/unicorn/response/impl
In directory hutz:/tmp/cvs-serv13395/src/org/w3c/unicorn/response/impl

Modified Files:
	OldMessageXBeans.java OldContextXBeans.java 
Log Message:
trim contexts and titles

Index: OldContextXBeans.java
===================================================================
RCS file: /sources/public/2006/unicorn/src/org/w3c/unicorn/response/impl/OldContextXBeans.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- OldContextXBeans.java	19 Oct 2009 12:41:24 -0000	1.1
+++ OldContextXBeans.java	22 Oct 2009 09:49:57 -0000	1.2
@@ -27,7 +27,9 @@
 	}
 
 	public String getContext() {
-		return context;
+		if (context != null)
+			return context.trim();
+		return null;
 	}
 
 	public Integer getLine() {

Index: OldMessageXBeans.java
===================================================================
RCS file: /sources/public/2006/unicorn/src/org/w3c/unicorn/response/impl/OldMessageXBeans.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- OldMessageXBeans.java	19 Oct 2009 18:26:09 -0000	1.5
+++ OldMessageXBeans.java	22 Oct 2009 09:49:57 -0000	1.6
@@ -139,7 +139,9 @@
 	}
 
 	public String getTitle() {
-		return title;
+		if (title != null)
+			return title.trim();
+		return null;
 	}
 
 	public int getType() {
Received on Thursday, 22 October 2009 09:50:01 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:17:39 UTC