- From: Mercurial notifier <nobody@w3.org>
- Date: Thu, 10 Jun 2010 14:54:28 -0400
- To: Unicorn Updates <www-validator-cvs@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 UTC