W3C home > Mailing lists > Public > www-validator-cvs@w3.org > June 2010

commit: updated Mindprod Compactor library

From: Mercurial notifier <nobody@w3.org>
Date: Thu, 10 Jun 2010 14:54:28 -0400
To: Unicorn Updates <www-validator-cvs@w3.org>
Message-Id: <E1OMmtY-0007jr-CA@blinky.w3.org>
changeset:   1182:3a280e491a7f
user:        Thomas Gambet <tgambet@w3.org>
date:        Thu Jun 10 13:49:59 2010 -0400
files:       WebContent/WEB-INF/lib/compactor.jar src/org/w3c/unicorn/util/Templates.java
description:
updated Mindprod Compactor library


diff -r 7db0a11dcf5f -r 3a280e491a7f WebContent/WEB-INF/lib/compactor.jar
Binary file WebContent/WEB-INF/lib/compactor.jar has changed
diff -r 7db0a11dcf5f -r 3a280e491a7f src/org/w3c/unicorn/util/Templates.java
--- a/src/org/w3c/unicorn/util/Templates.java	Thu Jun 10 13:49:12 2010 -0400
+++ b/src/org/w3c/unicorn/util/Templates.java	Thu Jun 10 13:49:59 2010 -0400
@@ -17,7 +17,8 @@
 			StringWriter sw = new StringWriter();
 			if (Property.get("USE_HTML_COMPACTOR").equalsIgnoreCase("true")) {
 				Framework.getVelocityEngine().mergeTemplate(templateName, "UTF-8", context, sw);
-				writer.append(Compactor.compactString(sw.toString(), templateName));
+				Compactor compactor = new Compactor();
+				writer.append(compactor.compactString(sw.toString(), templateName));
 			} else {
 				Framework.getVelocityEngine().mergeTemplate(templateName, "UTF-8", context, writer);
 			}
Received on Thursday, 10 June 2010 18:56:48 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 26 April 2012 12:55:20 GMT