PageRenderTime 55ms CodeModel.GetById 49ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/test/bugs/unfixed/blanks-around-nested-blocks-1.t2t

http://txt2tags.googlecode.com/
Unknown | 38 lines | 28 code | 10 blank | 0 comment | 0 complexity | 1f88fbdb35a4c8dd66197b351086c626 MD5 | raw file
 1
 2%!target: html
 3%!options: -H -o-
 4
 5%%%
 6Sample output:
 7<H2>title</H2>
 8
 9<UL>
10<LI>Item 1.
11<PRE>
12  Verbatim block
13</PRE>
14
15<LI>Item 2.
16</UL>
17
18There should be a blank line before <PRE>.
19
20It is not added because PRE is nested inside the list, and _should_add_blank_line() does not handle nested blocks very well. It asks BLOCK.last content to decide if the opening blank line should be added, but it fails because BLOCK.last = title (which is true, because the list is not closed yet).
21
22It must see if we're dealing with a nested block, and if so, check if we're the first block or which was the last closed block inside the list (in the case there were two consecutive PREs or something).
23
24This bug affects:
25test/crossing/deflist.t2t
26test/crossing/list.t2t
27test/crossing/numlist.t2t
28
292010-06-17
30%%%
31
32==title==
33- Item 1.
34```
35Verbatim block
36```
37- Item 2.
38-