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

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 UTC