PageRenderTime 22ms CodeModel.GetById 11ms app.highlight 7ms RepoModel.GetById 2ms app.codeStats 0ms

/test/marks/ok/list.html

http://txt2tags.googlecode.com/
HTML | 284 lines | 242 code | 40 blank | 2 comment | 0 complexity | 109f30b84f8b5456cb6f1bce9a20cb42 MD5 | raw file
  1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  2<HTML>
  3<HEAD>
  4<META NAME="generator" CONTENT="http://txt2tags.org">
  5</HEAD><BODY BGCOLOR="white" TEXT="black">
  6<CENTER>
  7</CENTER>
  8
  9
 10<H2>Items: Prefixed by hyphen</H2>
 11
 12<UL>
 13<LI>Use the hyphen to prefix list items.
 14<LI>There must be one space after the hyphen.
 15<LI>The list is closed by two consecutive blank lines.
 16</UL>
 17
 18<H2>Items: Free leading spacing (indentation)</H2>
 19
 20     <UL>
 21     <LI>The list can be indented on the source document.
 22     <LI>You can use any number of spaces.
 23     <LI>The result will be the same.
 24     </UL>
 25
 26<H2>Items: Vertical spacing between items</H2>
 27
 28<UL>
 29<LI>Let one blank line between the list items.
 30<P></P>
 31<LI>It will be maintained on the conversion.
 32<P></P>
 33<LI>Some targets don't support this behavior.
 34<P></P>
 35<LI>This one was separated by a line with blanks.
 36  You can also put a blank line inside
 37<P></P>
 38  the item contents and it will be preserved.
 39</UL>
 40
 41<H2>Items: Exactly ONE space after the hyphen</H2>
 42
 43<P>
 44-This is not a list (no space)
 45</P>
 46<P>
 47-    This is not a list (more than one space)
 48</P>
 49<P>
 50-	This is not a list (a TAB instead the space)
 51</P>
 52
 53<H2>Items: Catchy cases</H2>
 54
 55<UL>
 56<LI>- This is a list
 57<LI>+ This is a list
 58<LI>: This is a list
 59</UL>
 60
 61<H2>Nesting: Creating sublists</H2>
 62
 63<UL>
 64<LI>This is the "mother" list first item.
 65<LI>Here is the second, but inside this item,
 66  <UL>
 67  <LI>there is a sublist, with its own items.
 68  <LI>Note that the items of the same sublist
 69  <LI>must have the same indentation.
 70    <UL>
 71    <LI>And this can go on, opening sublists.
 72      <UL>
 73      <LI>Just add leading spaces before the
 74      <LI>hyphen and sublists will be opened.
 75      <LI>The two blank lines closes them all.
 76      </UL>
 77    </UL>
 78  </UL>
 79</UL>
 80
 81<H2>Nesting: Free leading spacing (indentation)</H2>
 82
 83<UL>
 84<LI>When nesting lists, the additional spaces are free.
 85 <UL>
 86 <LI>You can add just one,
 87        <UL>
 88        <LI>or many.
 89          <UL>
 90          <LI>What matters is to put more than the previous.
 91          <LI>But remember that the other items of the same list
 92          <LI>must use the same indentation.
 93          </UL>
 94        </UL>
 95 </UL>
 96</UL>
 97
 98<H2>Nesting: Maximum depth</H2>
 99
100<UL>
101<LI>There is not a depth limit,
102  <UL>
103  <LI>you can go deeper and deeper.
104    <UL>
105    <LI>But some targets may have restrictions.
106      <UL>
107      <LI>The LaTeX maximum is here, 4 levels.
108        <UL>
109        <LI>This one and the following sublists
110          <UL>
111          <LI>are moved up to the level 4
112            <UL>
113            <LI>when converting to LaTeX.
114              <UL>
115              <LI>On the other targets,
116                <UL>
117                <LI>it is just fine
118                  <UL>
119                  <LI>to have a very deep list.
120                  </UL>
121                </UL>
122              </UL>
123            </UL>
124          </UL>
125        </UL>
126      </UL>
127    </UL>
128  </UL>
129</UL>
130
131<H2>Nesting: Reverse doesn't work</H2>
132
133        <UL>
134        <LI>Reverse nesting doesn't work.
135        </UL>
136
137      <UL>
138      <LI>Because a sublist *must* have a mother list.
139      </UL>
140
141    <UL>
142    <LI>It's the list concept, not a txt2tags limitation.
143    </UL>
144
145  <UL>
146  <LI>All this sublists will be bumped to mother lists.
147  </UL>
148
149<UL>
150<LI>At level 1, like this one.
151</UL>
152
153<H2>Nesting: Going deeper and back</H2>
154
155<UL>
156<LI>Level 1
157  <UL>
158  <LI>Level 2
159    <UL>
160    <LI>Level 3
161      <UL>
162      <LI>Level 4
163      </UL>
164    <LI>Level 3 -- (closed Level 4)
165    </UL>
166  <LI>Level 2 -- (closed Level 3)
167  </UL>
168<LI>Level 1 -- (closed Level 2)
169</UL>
170
171<UL>
172<LI>Level 1
173  <UL>
174  <LI>Level 2
175    <UL>
176    <LI>Level 3
177      <UL>
178      <LI>Level 4
179      </UL>
180    </UL>
181  </UL>
182<LI>Level 1 -- (closed Level 4, Level 3 and Level 2)
183</UL>
184
185<H2>Nesting: Vertical spacing between lists</H2>
186
187<UL>
188<LI>Level 1
189<P></P>
190  <UL>
191  <LI>Level 2 -- blank BEFORE and AFTER (in)
192  <P></P>
193    <UL>
194    <LI>Level 3
195      <UL>
196      <LI>Level 4
197      </UL>
198    <LI>Level 3
199    <P></P>
200    </UL>
201  <LI>Level 2 -- blank BEFORE and AFTER (out)
202  <P></P>
203  </UL>
204<LI>Level 1
205<P></P>
206  <UL>
207  <LI>Level 2 -- blank BEFORE (spaces) and AFTER (TAB)
208  <P></P>
209    <UL>
210    <LI>Level 3
211    </UL>
212  </UL>
213</UL>
214
215<H2>Nesting: Messing up</H2>
216
217<UL>
218<LI>Level 1
219    <UL>
220    <LI>Level 2
221        <UL>
222        <LI>Level 3
223            <UL>
224            <LI>Level 4
225            </UL>
226        <LI>Level 3.5 ???
227        <LI>Level 3
228        </UL>
229    <LI>Level 2.5 ???
230    <LI>Level 2
231    </UL>
232<LI>Level 1.5 ???
233<LI>Level 1
234</UL>
235
236<H2>Closing: Two (not so) empty lines</H2>
237
238<UL>
239<LI>This list is closed by a line with spaces and other with TABs
240</UL>
241
242<UL>
243<LI>This list is NOT closed by two comment lines
244<LI>This list is closed by a line with spaces and TAB,
245<LI>then a comment line, then an empty line.
246</UL>
247
248<H2>Closing: Empty item closes current (sub)list</H2>
249
250<UL>
251<LI>Level 1
252  <UL>
253  <LI>Level 2
254    <UL>
255    <LI>Level 3
256    </UL>
257    Level 2
258  </UL>
259  Level 1
260</UL>
261
262<UL>
263<LI>Empty item with trailing spaces.
264</UL>
265
266<UL>
267<LI>Empty item with trailing TAB.
268</UL>
269
270<H2>Closing: EOF closes the lists</H2>
271
272<UL>
273<LI>If the end of the file (EOF) is hit,
274  <UL>
275  <LI>all the currently opened list are closed,
276    <UL>
277    <LI>just like when using the two blank lines.
278    </UL>
279  </UL>
280</UL>
281
282<!-- html code generated by txt2tags (http://txt2tags.org) -->
283<!-- cmdline: txt2tags -q -\-no-rc list.t2t -->
284</BODY></HTML>