Author: nbelaevski
Date: 2009-05-06 18:27:34 -0400 (Wed, 06 May 2009)
New Revision: 14046
Modified:
trunk/ui/editor/src/main/java/org/richfaces/convert/seamtext/tags/TagFactory.java
trunk/ui/editor/src/test/java/org/richfaces/seamparser/HtmlSeamParserTest.java
Log:
Editor reverted back
Modified:
trunk/ui/editor/src/main/java/org/richfaces/convert/seamtext/tags/TagFactory.java
===================================================================
---
trunk/ui/editor/src/main/java/org/richfaces/convert/seamtext/tags/TagFactory.java 2009-05-06
22:23:28 UTC (rev 14045)
+++
trunk/ui/editor/src/main/java/org/richfaces/convert/seamtext/tags/TagFactory.java 2009-05-06
22:27:34 UTC (rev 14046)
@@ -19,6 +19,7 @@
public static final String SEAM_STAR = "*";
public static final String SEAM_UNDERSCORE = "_";
public static final String SEAM_EQ = "=";
+ public static final String SEAM_BACKTICK = "`";
public static final String SEAM_DOUBLEQUOTE = "\"";
public static final String SEAM_LINK_START = "[";
public static final String SEAM_LINK_END = "]";
@@ -67,6 +68,7 @@
}
},
+ getNewTagDefinition(PRE, SEAM_BACKTICK, SEAM_BACKTICK),
getNewTagDefinition(Q, SEAM_DOUBLEQUOTE, SEAM_DOUBLEQUOTE),
new LinkTag(),
Modified: trunk/ui/editor/src/test/java/org/richfaces/seamparser/HtmlSeamParserTest.java
===================================================================
---
trunk/ui/editor/src/test/java/org/richfaces/seamparser/HtmlSeamParserTest.java 2009-05-06
22:23:28 UTC (rev 14045)
+++
trunk/ui/editor/src/test/java/org/richfaces/seamparser/HtmlSeamParserTest.java 2009-05-06
22:27:34 UTC (rev 14046)
@@ -34,11 +34,11 @@
private final static String SEAM_TEXT_EXPRESSION_5 = "You can write down
equations like 2\\*3\\+4-7\\=3 and HTML tagslike \\<body\\> using the escape
character: \\\\. foo(a)tut.by, 100$ cash 100%";
-// private final static String SEAM_TEXT_EXPRESSION_6 = "My code doesn't
work:"
-// + "`for (int i=0; i<100; i--)\n"
-// + "{\n"
-// + "doSomething(){ String str =
\"& >" \"; }; doSomething();\n"
-// + "doSomething() " + "}`" + " Any ideas?";
+ private final static String SEAM_TEXT_EXPRESSION_6 = "My code doesn't
work:"
+ + "`for (int i=0; i<100; i--)\n"
+ + "{\n"
+ + "doSomething(){ String str =
\"& >" \"; }; doSomething();\n"
+ + "doSomething() " + "}`" + " Any ideas?";
private final static String SEAM_TEXT_EXPRESSION_7 = "+ test
value<h1>test1<h2>test2</h2>test4</h1>\ntest";
@@ -122,9 +122,9 @@
assertSeamConverting(SEAM_TEXT_EXPRESSION_5);
}
-// public void testStandartSeamTextConverting6() throws Exception {
-// assertSeamConverting(SEAM_TEXT_EXPRESSION_6);
-// }
+ public void testStandartSeamTextConverting6() throws Exception {
+ assertSeamConverting(SEAM_TEXT_EXPRESSION_6);
+ }
public void testStandartSeamTextConverting7() throws Exception {
assertSeamConverting(SEAM_TEXT_EXPRESSION_7);
Show replies by date