[jboss-svn-commits] JBL Code SVN: r25880 - labs/jbossrules/trunk/drools-docs/drools-docs-expert/src/main/docbook/en-US/Chapter-Rule_Language.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Mon Mar 30 00:31:38 EDT 2009


Author: michael.neale at jboss.com
Date: 2009-03-30 00:31:38 -0400 (Mon, 30 Mar 2009)
New Revision: 25880

Modified:
   labs/jbossrules/trunk/drools-docs/drools-docs-expert/src/main/docbook/en-US/Chapter-Rule_Language/Section-DSL.xml
Log:
JBRULES-1953 corrected escaping of curlies

Modified: labs/jbossrules/trunk/drools-docs/drools-docs-expert/src/main/docbook/en-US/Chapter-Rule_Language/Section-DSL.xml
===================================================================
--- labs/jbossrules/trunk/drools-docs/drools-docs-expert/src/main/docbook/en-US/Chapter-Rule_Language/Section-DSL.xml	2009-03-30 02:58:52 UTC (rev 25879)
+++ labs/jbossrules/trunk/drools-docs/drools-docs-expert/src/main/docbook/en-US/Chapter-Rule_Language/Section-DSL.xml	2009-03-30 04:31:38 UTC (rev 25880)
@@ -119,10 +119,10 @@
 
     <para>The "{" and "}" characters should only be used on the left hand side
     of the mapping (the expression) to mark tokens. On the right hand side you
-    can use "{" and "}" on their own if needed - such as <programlisting>if (foo) {
-    doSomething(); }</programlisting> as well as with the token names as shown
-    above.</para>
-
+    can use "{" and "}" on their own if needed - such as <programlisting>if (foo) \{
+    doSomething();\ }</programlisting> as well as with the token names as shown
+    above.</para><para>PLEASE NOTE that if you want curly braces to appear literally as curly braces, then escape them with a backslack (\). Otherwise it may think it is a token to be replaced.
+  </para>
     <para>Don't forget that if you are capturing strings from users, you will
     also need the quotes on the right hand side of the mapping, just like a
     normal rule, as the result of the mapping must be a valid expression in




More information about the jboss-svn-commits mailing list