[jboss-cvs] jboss-seam ...
Gavin King
gavin.king at jboss.com
Tue Mar 6 20:20:43 EST 2007
User: gavin
Date: 07/03/06 20:20:43
Modified: jboss-seam seam-text.g
Log:
more tolerant of spaces
Revision Changes Path
1.31 +2 -2 jboss-seam/seam-text.g
(In the diff below, changes in quantity of whitespace are not shown.)
Index: seam-text.g
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/seam-text.g,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -b -r1.30 -r1.31
--- seam-text.g 28 Feb 2007 19:14:45 -0000 1.30
+++ seam-text.g 7 Mar 2007 01:20:43 -0000 1.31
@@ -203,7 +203,7 @@
newlineOrEof: newline | EOF
;
-html: openTag (attribute)* ( ( beforeBody body closeTagWithBody ) | closeTagWithNoBody )
+html: openTag (space)+ ( attribute (space)+ )* ( ( beforeBody body closeTagWithBody ) | closeTagWithNoBody )
;
body: (plain|formatted|preformatted|quoted|html|(list newline)|newline)*
@@ -221,7 +221,7 @@
closeTagWithNoBody: SLASH GT { append("/>"); }
;
-attribute: space att:WORD EQ
+attribute: att:WORD (space)* EQ (space)*
DOUBLEQUOTE { validateAttribute(att); append(att.getText()); append("=\""); }
attributeValue
DOUBLEQUOTE { append("\""); }
More information about the jboss-cvs-commits
mailing list