W3C home > Mailing lists > Public > www-validator-cvs@w3.org > February 2012

2002/css-validator/org/w3c/css/css StyleSheetGenerator.java,1.32,1.33

From: Yves Lafon via cvs-syncmail <cvsmail@w3.org>
Date: Tue, 07 Feb 2012 14:16:46 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1Rulqg-000558-OS@lionel-hutz.w3.org>
Update of /sources/public/2002/css-validator/org/w3c/css/css
In directory hutz:/tmp/cvs-serv19356

Modified Files:
	StyleSheetGenerator.java 
Log Message:
encoding facilities in templates

Index: StyleSheetGenerator.java
===================================================================
RCS file: /sources/public/2002/css-validator/org/w3c/css/css/StyleSheetGenerator.java,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -d -r1.32 -r1.33
--- StyleSheetGenerator.java	17 Sep 2011 06:02:26 -0000	1.32
+++ StyleSheetGenerator.java	7 Feb 2012 14:16:44 -0000	1.33
@@ -113,6 +113,8 @@
         this.template_file = availableFormat.getProperty(document);
 
         context = new VelocityContext();
+        // add a static ref for templates that needs to do some escaping
+        context.put("Messages", Messages.class);
         // adjust the source name if needed
         if (ac.isInputFake()) {
             title = title.substring(title.lastIndexOf('/') + 1);
Received on Tuesday, 7 February 2012 14:18:51 GMT

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