keiron 01/09/07 07:10:07
Modified: src/org/apache/fop/image FopImageFactory.java
Log:
forgot about quotes
Revision Changes Path
1.23 +6 -1 xml-fop/src/org/apache/fop/image/FopImageFactory.java
Index: FopImageFactory.java
===================================================================
RCS file: /home/cvs/xml-fop/src/org/apache/fop/image/FopImageFactory.java,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -r1.22 -r1.23
--- FopImageFactory.java 2001/09/07 13:56:23 1.22
+++ FopImageFactory.java 2001/09/07 14:10:07 1.23
@@ -1,5 +1,5 @@
/*
- * $Id: FopImageFactory.java,v 1.22 2001/09/07 13:56:23 keiron Exp $
+ * $Id: FopImageFactory.java,v 1.23 2001/09/07 14:10:07 keiron Exp $
* Copyright (C) 2001 The Apache Software Foundation. All rights reserved.
* For details on use and redistribution please refer to the
* LICENSE file included with these sources.
@@ -52,6 +52,11 @@
href = href.trim();
if(href.startsWith("url(") && (href.indexOf(")") != -1)) {
href = href.substring(4, href.indexOf(")")).trim();
+ if(href.startsWith("'") && href.endsWith("'")) {
+ href = href.substring(1, href.length() - 1);
+ } else if(href.startsWith("\"") && href.endsWith("\"")) {
+ href = href.substring(1, href.length() - 1);
+ }
}
try {
// try url as complete first, this can cause
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]