- From: Yves Lafon via cvs-syncmail <cvsmail@w3.org>
- Date: Tue, 17 Feb 2009 13:25:25 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/2002/css-validator/org/w3c/css/css
In directory hutz:/tmp/cvs-serv13057
Modified Files:
StyleSheetGenerator.java
Log Message:
copy/pasting is bad ;)
Index: StyleSheetGenerator.java
===================================================================
RCS file: /sources/public/2002/css-validator/org/w3c/css/css/StyleSheetGenerator.java,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -d -r1.25 -r1.26
--- StyleSheetGenerator.java 17 Feb 2009 09:39:56 -0000 1.25
+++ StyleSheetGenerator.java 17 Feb 2009 13:25:23 -0000 1.26
@@ -115,13 +115,12 @@
this.template_file = availableFormat.getProperty(document);
context = new VelocityContext();
+ // adjust the source name if needed
if (ac.isInputFake()) {
title = title.substring(title.lastIndexOf('/')+1);
- context.put("file_title", title);
- } else {
- context.put("file_title", title);
- }
-
+ }
+ context.put("file_title", title);
+
// W3C_validator_result
warnings = style.getWarnings();
errors = style.getErrors();
Received on Tuesday, 17 February 2009 13:25:35 UTC