Skip to main content
summaryrefslogtreecommitdiffstats
blob: 15704825e9e0a958516e78f08efc552456d060e8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<%@taglib id="org.eclipse.jet.controlTags" prefix="c"%>
<%-- This template is used to verify text trimming rules. It is used by TextTrimmingTexts.java --%>

<%-- text stripping around start/end tags that support stripping (e.g. c:iterate) --%>
test 001
<c:iterate select="foo" var="bar">
    some text with four spaces after    
</c:iterate>
test 001

<%-- text stripping around start/end tags that support stripping (e.g. c:iterate)
 with leading and trailing whitepace --%>
test 002
   <c:iterate select="foo" var="bar">   
    some text with four spaces after    
	</c:iterate>   
test 002

<%-- text stripping around start/end tags that support stripping (e.g. c:iterate)
 with multi-line tags --%>
test 003
   <c:iterate 
      select="foo" 
      var="bar"
      >   
    some text with four spaces after    
	</c:iterate
	>   
test 003

<%-- text stripping on directives --%>
test 004
   <%@taglib id="org.eclipse.jet.workspaceTags" prefix="ws"%>   
test 004

<%-- text stripping on scriptlet --%>
test 005
  <%
    int x = 3;
%>  
test 005

<%-- text stripping on declarations --%>
test 006
  <%!
   public int square(int arg) {
       return arg * arg;
   }
%>   
test 006

<%-- text stripping on empytags that supports stripping --%>
test 007
   <c:include template="templates/foo.jet"/>   
test 007

<%-- text stripping on empytags that does not support stripping --%>
test 008
   <c:get select="templates/foo.jet"/>   
test 008

<%-- text stripping on comments --%>
test 009
   <%-- a comment --%>
test 009

<%-- text stripping an expression --%>
test 010
    <%= x %>   
test 010

Back to the top