hillion 01/10/21 23:45:29
Modified: sources/org/apache/batik/css/parser Parser.java
Log:
Fixed a bug in CSS parser when unmatched '}' is encountered.
Revision Changes Path
1.13 +4 -1 xml-batik/sources/org/apache/batik/css/parser/Parser.java
Index: Parser.java
===================================================================
RCS file: /home/cvs/xml-batik/sources/org/apache/batik/css/parser/Parser.java,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- Parser.java 2001/08/21 15:25:59 1.12
+++ Parser.java 2001/10/22 06:45:29 1.13
@@ -43,7 +43,7 @@
* This class implements the {@link org.w3c.css.sac.Parser} interface.
*
* @author <a href="mailto:[EMAIL PROTECTED]">Stephane Hillion</a>
- * @version $Id: Parser.java,v 1.12 2001/08/21 15:25:59 hillion Exp $
+ * @version $Id: Parser.java,v 1.13 2001/10/22 06:45:29 hillion Exp $
*/
public class Parser
implements org.w3c.css.sac.Parser,
@@ -603,6 +603,9 @@
if (current != LexicalUnits.LEFT_CURLY_BRACE) {
reportError("left.curly.brace");
+ if (current == LexicalUnits.RIGHT_CURLY_BRACE) {
+ nextIgnoreSpaces();
+ }
} else {
nextIgnoreSpaces();
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]