[richfaces-svn-commits] JBoss Rich Faces SVN: r11504 - trunk/ui/editor/src/main/antlr.

richfaces-svn-commits at lists.jboss.org richfaces-svn-commits at lists.jboss.org
Wed Dec 3 06:59:01 EST 2008


Author: abelevich
Date: 2008-12-03 06:59:01 -0500 (Wed, 03 Dec 2008)
New Revision: 11504

Modified:
   trunk/ui/editor/src/main/antlr/html-seamtext.g
Log:
https://jira.jboss.org/jira/browse/RF-5106

Modified: trunk/ui/editor/src/main/antlr/html-seamtext.g
===================================================================
--- trunk/ui/editor/src/main/antlr/html-seamtext.g	2008-12-03 11:41:26 UTC (rev 11503)
+++ trunk/ui/editor/src/main/antlr/html-seamtext.g	2008-12-03 11:59:01 UTC (rev 11504)
@@ -537,7 +537,7 @@
 	 )	 
 	
 	  {	
-	  		  	
+	  	
 	  	String plain = endCapture();
 	 	if(valueCollector == null) {
 	 		valueCollector = new StringBuilder();
@@ -546,6 +546,7 @@
 	   }
 	 |html
 	 	{
+	 		 		 	
 	 	if(valueCollector != null) {
 	 		append(valueCollector.toString());
 	 	}
@@ -569,8 +570,11 @@
          if(!isPlainHtmlRequired(name, htmlElementStack)) {
          	
          	if (isFormattedHtmlSeamTextElement(name)) {
-         		  
-         		if(isList(name)) {
+         		
+         		if(isLink(name) && valueCollector != null) {
+         			append(valueCollector.toString());
+         			valueCollector = null; 
+         		}if(isList(name)) {
          			append(BLANK_LINE);
          		} else if (isListItem(name)) {
          			append(createSeamTextList(name, htmlElementStack));         					




More information about the richfaces-svn-commits mailing list