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