Debian Codegraph @

tests/test-minirst.py.out

raw
1 == paragraphs ==
2 60 column format:
3 ----------------------------------------------------------------------
4 This is some text in the first paragraph.
5
6 A small indented paragraph. It is followed by some lines
7 containing random whitespace.
8
9 The third and final paragraph.
10 ----------------------------------------------------------------------
11
12 30 column format:
13 ----------------------------------------------------------------------
14 This is some text in the first
15 paragraph.
16
17 A small indented paragraph.
18 It is followed by some lines
19 containing random
20 whitespace.
21
22 The third and final paragraph.
23 ----------------------------------------------------------------------
24
25 html format:
26 ----------------------------------------------------------------------
27 <p>
28 This is some text in the first paragraph.
29 </p>
30 <p>
31 A small indented paragraph.
32 It is followed by some lines
33 containing random whitespace.
34 </p>
35 <p>
36 The third and final paragraph.
37 </p>
38 ----------------------------------------------------------------------
39
40 == definitions ==
41 60 column format:
42 ----------------------------------------------------------------------
43 A Term
44 Definition. The indented lines make up the definition.
45
46 Another Term
47 Another definition. The final line in the definition
48 determines the indentation, so this will be indented
49 with four spaces.
50
51 A Nested/Indented Term
52 Definition.
53 ----------------------------------------------------------------------
54
55 30 column format:
56 ----------------------------------------------------------------------
57 A Term
58 Definition. The indented
59 lines make up the
60 definition.
61
62 Another Term
63 Another definition. The
64 final line in the
65 definition determines the
66 indentation, so this will
67 be indented with four
68 spaces.
69
70 A Nested/Indented Term
71 Definition.
72 ----------------------------------------------------------------------
73
74 html format:
75 ----------------------------------------------------------------------
76 <dl>
77 <dt>A Term
78 <dd>Definition. The indented lines make up the definition.
79 <dt>Another Term
80 <dd>Another definition. The final line in the definition determines the indentation, so this will be indented with four spaces.
81 <dt>A Nested/Indented Term
82 <dd>Definition.
83 </dl>
84 ----------------------------------------------------------------------
85
86 == literals ==
87 60 column format:
88 ----------------------------------------------------------------------
89 The fully minimized form is the most convenient form:
90
91 Hello
92 literal
93 world
94
95 In the partially minimized form a paragraph simply ends with
96 space-double-colon.
97
98 ////////////////////////////////////////
99 long un-wrapped line in a literal block
100 \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
101
102 This literal block is started with '::',
103 the so-called expanded form. The paragraph
104 with '::' disappears in the final output.
105 ----------------------------------------------------------------------
106
107 30 column format:
108 ----------------------------------------------------------------------
109 The fully minimized form is
110 the most convenient form:
111
112 Hello
113 literal
114 world
115
116 In the partially minimized
117 form a paragraph simply ends
118 with space-double-colon.
119
120 ////////////////////////////////////////
121 long un-wrapped line in a literal block
122 \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
123
124 This literal block is started with '::',
125 the so-called expanded form. The paragraph
126 with '::' disappears in the final output.
127 ----------------------------------------------------------------------
128
129 html format:
130 ----------------------------------------------------------------------
131 <p>
132 The fully minimized form is the most
133 convenient form:
134 </p>
135 <pre>
136 Hello
137 literal
138 world
139 </pre>
140 <p>
141 In the partially minimized form a paragraph
142 simply ends with space-double-colon.
143 </p>
144 <pre>
145 ////////////////////////////////////////
146 long un-wrapped line in a literal block
147 \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
148 </pre>
149 <pre>
150 This literal block is started with '::',
151 the so-called expanded form. The paragraph
152 with '::' disappears in the final output.
153 </pre>
154 ----------------------------------------------------------------------
155
156 == lists ==
157 60 column format:
158 ----------------------------------------------------------------------
159 - This is the first list item.
160
161 Second paragraph in the first list item.
162
163 - List items need not be separated by a blank line.
164 - And will be rendered without one in any case.
165
166 We can have indented lists:
167
168 - This is an indented list item
169 - Another indented list item:
170
171 - A literal block in the middle
172 of an indented list.
173
174 (The above is not a list item since we are in the literal block.)
175
176 Literal block with no indentation (apart from
177 the two spaces added to all literal blocks).
178
179 1. This is an enumerated list (first item).
180 2. Continuing with the second item.
181 (1) foo
182 (2) bar
183 1) Another
184 2) List
185
186 Line blocks are also a form of list:
187
188 This is the first line. The line continues here.
189 This is the second line.
190
191 Bullet lists are also detected:
192
193 * This is the first bullet
194 * This is the second bullet It has 2 lines
195 * This is the third bullet
196 ----------------------------------------------------------------------
197
198 30 column format:
199 ----------------------------------------------------------------------
200 - This is the first list item.
201
202 Second paragraph in the
203 first list item.
204
205 - List items need not be
206 separated by a blank line.
207 - And will be rendered without
208 one in any case.
209
210 We can have indented lists:
211
212 - This is an indented list
213 item
214 - Another indented list
215 item:
216
217 - A literal block in the middle
218 of an indented list.
219
220 (The above is not a list item since we are in the literal block.)
221
222 Literal block with no indentation (apart from
223 the two spaces added to all literal blocks).
224
225 1. This is an enumerated list
226 (first item).
227 2. Continuing with the second
228 item.
229 (1) foo
230 (2) bar
231 1) Another
232 2) List
233
234 Line blocks are also a form of
235 list:
236
237 This is the first line. The
238 line continues here.
239 This is the second line.
240
241 Bullet lists are also
242 detected:
243
244 * This is the first bullet
245 * This is the second bullet It
246 has 2 lines
247 * This is the third bullet
248 ----------------------------------------------------------------------
249
250 html format:
251 ----------------------------------------------------------------------
252 <ul>
253 <li> This is the first list item.
254 <p>
255 Second paragraph in the first list item.
256 </p>
257 <li> List items need not be separated by a blank line.
258 <li> And will be rendered without one in any case.
259 </ul>
260 <p>
261 We can have indented lists:
262 </p>
263 <ul>
264 <li> This is an indented list item
265 <li> Another indented list item:
266 <pre>
267 - A literal block in the middle
268 of an indented list.
269 </pre>
270 <pre>
271 (The above is not a list item since we are in the literal block.)
272 </pre>
273 </ul>
274 <pre>
275 Literal block with no indentation (apart from
276 the two spaces added to all literal blocks).
277 </pre>
278 <ol>
279 <li> This is an enumerated list (first item).
280 <li> Continuing with the second item.
281 <li> foo
282 <li> bar
283 <li> Another
284 <li> List
285 </ol>
286 <p>
287 Line blocks are also a form of list:
288 </p>
289 <ol>
290 <li> This is the first line. The line continues here.
291 <li> This is the second line.
292 </ol>
293 <p>
294 Bullet lists are also detected:
295 </p>
296 <ul>
297 <li> This is the first bullet
298 <li> This is the second bullet It has 2 lines
299 <li> This is the third bullet
300 </ul>
301 ----------------------------------------------------------------------
302
303 == options ==
304 60 column format:
305 ----------------------------------------------------------------------
306 There is support for simple option lists, but only with long
307 options:
308
309 -X --exclude filter an option with a short and long option
310 with an argument
311 -I --include an option with both a short option and
312 a long option
313 --all Output all.
314 --both Output both (this description is quite
315 long).
316 --long Output all day long.
317 --par This option has two paragraphs in its
318 description. This is the first.
319
320 This is the second. Blank lines may
321 be omitted between options (as above)
322 or left in (as here).
323
324 The next paragraph looks like an option list, but lacks the
325 two-space marker after the option. It is treated as a normal
326 paragraph:
327
328 --foo bar baz
329 ----------------------------------------------------------------------
330
331 30 column format:
332 ----------------------------------------------------------------------
333 There is support for simple
334 option lists, but only with
335 long options:
336
337 -X --exclude filter an
338 option
339 with a
340 short
341 and
342 long
343 option
344 with an
345 argumen
346 t
347 -I --include an
348 option
349 with
350 both a
351 short
352 option
353 and a
354 long
355 option
356 --all Output
357 all.
358 --both Output
359 both
360 (this d
361 escript
362 ion is
363 quite
364 long).
365 --long Output
366 all day
367 long.
368 --par This
369 option
370 has two
371 paragra
372 phs in
373 its des
374 criptio
375 n. This
376 is the
377 first.
378
379 This is
380 the
381 second.
382 Blank
383 lines
384 may be
385 omitted
386 between
387 options
388 (as
389 above)
390 or left
391 in (as
392 here).
393
394 The next paragraph looks like
395 an option list, but lacks the
396 two-space marker after the
397 option. It is treated as a
398 normal paragraph:
399
400 --foo bar baz
401 ----------------------------------------------------------------------
402
403 html format:
404 ----------------------------------------------------------------------
405 <p>
406 There is support for simple option lists,
407 but only with long options:
408 </p>
409 <dl>
410 <dt>-X --exclude filter
411 <dd>an option with a short and long option with an argument
412 <dt>-I --include
413 <dd>an option with both a short option and a long option
414 <dt> --all
415 <dd>Output all.
416 <dt> --both
417 <dd>Output both (this description is quite long).
418 <dt> --long
419 <dd>Output all day long.
420 <dt> --par
421 <dd>This option has two paragraphs in its description. This is the first.
422 <p>
423 This is the second. Blank lines may be omitted between
424 options (as above) or left in (as here).
425 </p>
426 </dl>
427 <p>
428 The next paragraph looks like an option list, but lacks the two-space
429 marker after the option. It is treated as a normal paragraph:
430 </p>
431 <p>
432 --foo bar baz
433 </p>
434 ----------------------------------------------------------------------
435
436 == fields ==
437 60 column format:
438 ----------------------------------------------------------------------
439 a First item.
440 ab Second item. Indentation and wrapping is
441 handled automatically.
442 c:d a key with colon
443 efg::hh a key with many colon
444
445 Next list:
446
447 small The larger key below triggers full indentation
448 here.
449 much too large
450 This key is big enough to get its own line.
451 ----------------------------------------------------------------------
452
453 30 column format:
454 ----------------------------------------------------------------------
455 a First item.
456 ab Second item.
457 Indentation and
458 wrapping is
459 handled
460 automatically.
461 c:d a key with colon
462 efg::hh a key with many
463 colon
464
465 Next list:
466
467 small The larger key
468 below triggers
469 full indentation
470 here.
471 much too large
472 This key is big
473 enough to get
474 its own line.
475 ----------------------------------------------------------------------
476
477 html format:
478 ----------------------------------------------------------------------
479 <dl>
480 <dt>a
481 <dd>First item.
482 <dt>ab
483 <dd>Second item. Indentation and wrapping is handled automatically.
484 <dt>c:d
485 <dd>a key with colon
486 <dt>efg::hh
487 <dd>a key with many colon
488 </dl>
489 <p>
490 Next list:
491 </p>
492 <dl>
493 <dt>small
494 <dd>The larger key below triggers full indentation here.
495 <dt>much too large
496 <dd>This key is big enough to get its own line.
497 </dl>
498 ----------------------------------------------------------------------
499
500 == containers (normal) ==
501 60 column format:
502 ----------------------------------------------------------------------
503 Normal output.
504 ----------------------------------------------------------------------
505
506 30 column format:
507 ----------------------------------------------------------------------
508 Normal output.
509 ----------------------------------------------------------------------
510
511 html format:
512 ----------------------------------------------------------------------
513 <p>
514 Normal output.
515 </p>
516 ----------------------------------------------------------------------
517
518 == containers (verbose) ==
519 60 column format:
520 ----------------------------------------------------------------------
521 Normal output.
522
523 Verbose output.
524 ----------------------------------------------------------------------
525 ['debug', 'debug']
526 ----------------------------------------------------------------------
527
528 30 column format:
529 ----------------------------------------------------------------------
530 Normal output.
531
532 Verbose output.
533 ----------------------------------------------------------------------
534 ['debug', 'debug']
535 ----------------------------------------------------------------------
536
537 html format:
538 ----------------------------------------------------------------------
539 <p>
540 Normal output.
541 </p>
542 <p>
543 Verbose output.
544 </p>
545 ----------------------------------------------------------------------
546 ['debug', 'debug']
547 ----------------------------------------------------------------------
548
549 == containers (debug) ==
550 60 column format:
551 ----------------------------------------------------------------------
552 Normal output.
553
554 Initial debug output.
555 ----------------------------------------------------------------------
556 ['verbose']
557 ----------------------------------------------------------------------
558
559 30 column format:
560 ----------------------------------------------------------------------
561 Normal output.
562
563 Initial debug output.
564 ----------------------------------------------------------------------
565 ['verbose']
566 ----------------------------------------------------------------------
567
568 html format:
569 ----------------------------------------------------------------------
570 <p>
571 Normal output.
572 </p>
573 <p>
574 Initial debug output.
575 </p>
576 ----------------------------------------------------------------------
577 ['verbose']
578 ----------------------------------------------------------------------
579
580 == containers (verbose debug) ==
581 60 column format:
582 ----------------------------------------------------------------------
583 Normal output.
584
585 Initial debug output.
586
587 Verbose output.
588
589 Debug output.
590 ----------------------------------------------------------------------
591 []
592 ----------------------------------------------------------------------
593
594 30 column format:
595 ----------------------------------------------------------------------
596 Normal output.
597
598 Initial debug output.
599
600 Verbose output.
601
602 Debug output.
603 ----------------------------------------------------------------------
604 []
605 ----------------------------------------------------------------------
606
607 html format:
608 ----------------------------------------------------------------------
609 <p>
610 Normal output.
611 </p>
612 <p>
613 Initial debug output.
614 </p>
615 <p>
616 Verbose output.
617 </p>
618 <p>
619 Debug output.
620 </p>
621 ----------------------------------------------------------------------
622 []
623 ----------------------------------------------------------------------
624
625 == roles ==
626 60 column format:
627 ----------------------------------------------------------------------
628 Please see 'hg add'.
629 ----------------------------------------------------------------------
630
631 30 column format:
632 ----------------------------------------------------------------------
633 Please see 'hg add'.
634 ----------------------------------------------------------------------
635
636 html format:
637 ----------------------------------------------------------------------
638 <p>
639 Please see 'hg add'.
640 </p>
641 ----------------------------------------------------------------------
642
643 == sections ==
644 60 column format:
645 ----------------------------------------------------------------------
646 Title
647 =====
648
649 Section
650 -------
651
652 Subsection
653 ''''''''''
654
655 Markup: "foo" and 'hg help'
656 ---------------------------
657 ----------------------------------------------------------------------
658
659 30 column format:
660 ----------------------------------------------------------------------
661 Title
662 =====
663
664 Section
665 -------
666
667 Subsection
668 ''''''''''
669
670 Markup: "foo" and 'hg help'
671 ---------------------------
672 ----------------------------------------------------------------------
673
674 html format:
675 ----------------------------------------------------------------------
676 <h1>Title</h1>
677 <h2>Section</h2>
678 <h3>Subsection</h3>
679 <h2>Markup: &quot;foo&quot; and 'hg help'</h2>
680 ----------------------------------------------------------------------
681
682 == admonitions ==
683 60 column format:
684 ----------------------------------------------------------------------
685 Note:
686 This is a note
687
688 - Bullet 1
689 - Bullet 2
690
691 Warning!
692 This is a warning Second input line of warning
693
694 !Danger!
695 This is danger
696 ----------------------------------------------------------------------
697
698 30 column format:
699 ----------------------------------------------------------------------
700 Note:
701 This is a note
702
703 - Bullet 1
704 - Bullet 2
705
706 Warning!
707 This is a warning Second
708 input line of warning
709
710 !Danger!
711 This is danger
712 ----------------------------------------------------------------------
713
714 html format:
715 ----------------------------------------------------------------------
716 <p>
717 <b>Note:</b>
718 </p>
719 <p>
720 This is a note
721 </p>
722 <ul>
723 <li> Bullet 1
724 <li> Bullet 2
725 </ul>
726 <p>
727 <b>Warning!</b> This is a warning Second input line of warning
728 </p>
729 <p>
730 <b>!Danger!</b> This is danger
731 </p>
732 ----------------------------------------------------------------------
733
734 == comments ==
735 60 column format:
736 ----------------------------------------------------------------------
737 Some text.
738
739 Some indented text.
740
741 Empty comment above
742 ----------------------------------------------------------------------
743
744 30 column format:
745 ----------------------------------------------------------------------
746 Some text.
747
748 Some indented text.
749
750 Empty comment above
751 ----------------------------------------------------------------------
752
753 html format:
754 ----------------------------------------------------------------------
755 <p>
756 Some text.
757 </p>
758 <p>
759 Some indented text.
760 </p>
761 <p>
762 Empty comment above
763 </p>
764 ----------------------------------------------------------------------
765
766 === === ========================================
767 a b c
768 === === ========================================
769 1 2 3
770 foo bar baz this list is very very very long man
771 === === ========================================
772
773 == table ==
774 60 column format:
775 ----------------------------------------------------------------------
776 a b c
777 ------------------------------------------------
778 1 2 3
779 foo bar baz this list is very very very long man
780 ----------------------------------------------------------------------
781
782 30 column format:
783 ----------------------------------------------------------------------
784 a b c
785 ------------------------------
786 1 2 3
787 foo bar baz this list is
788 very very very long
789 man
790 ----------------------------------------------------------------------
791
792 html format:
793 ----------------------------------------------------------------------
794 <table>
795 <tr><td>a</td>
796 <td>b</td>
797 <td>c</td></tr>
798 <tr><td>1</td>
799 <td>2</td>
800 <td>3</td></tr>
801 <tr><td>foo</td>
802 <td>bar</td>
803 <td>baz this list is very very very long man</td></tr>
804 </table>
805 ----------------------------------------------------------------------
806
807 = ==== ======================================
808 s long line goes on here
809 xy tried to fix here by indenting
810 = ==== ======================================
811
812 == table+nl ==
813 60 column format:
814 ----------------------------------------------------------------------
815 s long line goes on here
816 xy tried to fix here by indenting
817 ----------------------------------------------------------------------
818
819 30 column format:
820 ----------------------------------------------------------------------
821 s long line goes on here
822 xy tried to fix here by
823 indenting
824 ----------------------------------------------------------------------
825
826 html format:
827 ----------------------------------------------------------------------
828 <table>
829 <tr><td>s</td>
830 <td>long</td>
831 <td>line goes on here</td></tr>
832 <tr><td></td>
833 <td>xy</td>
834 <td>tried to fix here by indenting</td></tr>
835 </table>
836 ----------------------------------------------------------------------
837