[jboss-cvs] jboss-seam ...
Christian Bauer
christian.bauer at jboss.com
Tue Jan 30 08:25:17 EST 2007
User: cbauer
Date: 07/01/30 08:25:17
Modified: jboss-seam seam-text.g
Log:
Added customizable hyperlink CSS class
Revision Changes Path
1.27 +324 -323 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.26
retrieving revision 1.27
diff -u -b -r1.26 -r1.27
--- seam-text.g 28 Jan 2007 21:14:48 -0000 1.26
+++ seam-text.g 30 Jan 2007 13:25:16 -0000 1.27
@@ -55,6 +55,7 @@
return descriptionText.toString().trim().length()>0 ? descriptionText : linkText;
}
+ protected String linkClass(String linkText) { return "seamTextLink"; }
}
startRule: (newline)* ( (heading (newline)* )? text (heading (newline)* text)* )?
@@ -131,7 +132,7 @@
EQ GT
{ beginCapture(); }
attributeValue
- { String link = endCapture(); append("<a href=\""); append( linkUrl(link) ); append("\">"); append( linkDescription(text, link) ); append("</a>"); }
+ { String link = endCapture(); append("<a class=\""); append( linkClass(link) ); append("\" href=\""); append( linkUrl(link) ); append("\">"); append( linkDescription(text, link) ); append("</a>"); }
CLOSE
;
More information about the jboss-cvs-commits
mailing list