docgenerator 1.0.2 → 1.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (84) hide show
  1. data/lib/docgenerator.rb +27 -1
  2. data/lib/docgenerator_css.rb +26 -23
  3. data/lib/docgenerator_document.rb +78 -16
  4. data/lib/docgenerator_element.rb +10 -25
  5. data/lib/docgenerator_elements.rb +78 -13
  6. data/lib/templates/docgenerator_template_css.rb +73 -0
  7. data/lib/wiki2doc/wiki2docgenerator.rb +12 -19
  8. data/unittest/expected/beamer_01_article.tex +13 -0
  9. data/unittest/expected/beamer_01_attachment.tex +15 -0
  10. data/unittest/expected/beamer_01_doc.html +13 -0
  11. data/unittest/expected/beamer_01_doc.tex +18 -0
  12. data/unittest/expected/beamer_01_notes_only.tex +13 -0
  13. data/unittest/expected/beamer_01_notes_onlyslideswithnotes.tex +13 -0
  14. data/unittest/expected/beamer_01_notes_show.tex +13 -0
  15. data/unittest/expected/beamer_01_presentation.tex +13 -0
  16. data/unittest/expected/beamer_02_doc.html +29 -0
  17. data/unittest/expected/beamer_02_doc.tex +34 -0
  18. data/unittest/expected/beamer_block.html +1 -0
  19. data/unittest/expected/beamer_block.latex +1 -0
  20. data/unittest/expected/beamer_doc_fragile_doc.tex +33 -0
  21. data/unittest/expected/beamer_doc_key_doc.html +20 -0
  22. data/unittest/expected/beamer_doc_key_doc.tex +29 -0
  23. data/unittest/expected/beamer_doc_note_doc.html +30 -0
  24. data/unittest/expected/beamer_doc_note_doc.tex +37 -0
  25. data/unittest/expected/beamer_doc_pic_bottom_doc.html +24 -0
  26. data/unittest/expected/beamer_doc_pic_doc.html +24 -0
  27. data/unittest/expected/beamer_doc_pic_doc.tex +28 -0
  28. data/unittest/expected/beamer_doc_pic_left_doc.html +24 -0
  29. data/unittest/expected/beamer_doc_pic_left_doc.tex +28 -0
  30. data/unittest/expected/beamer_doc_pic_ratio_doc.tex +29 -0
  31. data/unittest/expected/beamer_doc_pic_right_doc.html +24 -0
  32. data/unittest/expected/beamer_doc_pic_right_doc.tex +28 -0
  33. data/unittest/expected/beamer_doc_pic_top_doc.html +24 -0
  34. data/unittest/expected/beamer_frame.html +5 -0
  35. data/unittest/expected/beamer_frame.tex +11 -0
  36. data/unittest/expected/beamer_frame_fragile.tex +7 -0
  37. data/unittest/expected/beamer_frame_id.html +1 -0
  38. data/unittest/expected/beamer_frame_id.tex +4 -0
  39. data/unittest/expected/beamer_framepic.html +5 -0
  40. data/unittest/expected/beamer_framepic.latex +1 -0
  41. data/unittest/expected/beamer_framepic_link.html +5 -0
  42. data/unittest/expected/beamer_framepic_link.latex +1 -0
  43. data/unittest/expected/beamer_frametitle.html +1 -0
  44. data/unittest/expected/beamer_frametitle.latex +1 -0
  45. data/unittest/expected/beamer_note.html +1 -0
  46. data/unittest/expected/{test_beamer_note.latex → beamer_note.latex} +0 -0
  47. data/unittest/expected/css_collection.html +9 -0
  48. data/unittest/expected/css_collection_anonym.html +9 -0
  49. data/unittest/expected/test_css.css +1 -1
  50. data/unittest/expected/test_css2.css +1 -1
  51. data/unittest/expected/test_document_toc.html +14 -0
  52. data/unittest/expected/test_document_toc_article.latex +64 -0
  53. data/unittest/expected/test_document_toc_deep.html +18 -0
  54. data/unittest/expected/test_document_toc_deep.latex +35 -0
  55. data/unittest/expected/test_document_toc_deep_1.html +6 -0
  56. data/unittest/expected/test_document_toc_deep_1.latex +11 -0
  57. data/unittest/expected/test_document_toc_deep_4.html +24 -0
  58. data/unittest/expected/test_document_toc_deep_4.latex +47 -0
  59. data/unittest/expected/test_document_toc_deep_err.html +34 -0
  60. data/unittest/expected/test_document_toc_deep_err.latex +37 -0
  61. data/unittest/expected/test_document_toc_deep_err.log +4 -0
  62. data/unittest/expected/test_document_toc_deep_single.html +30 -0
  63. data/unittest/expected/test_document_toc_html.html +34 -0
  64. data/unittest/expected/test_document_toc_single.html +14 -0
  65. data/unittest/expected/test_document_toc_single.latex +27 -0
  66. data/unittest/expected/test_document_toc_single_pre.html +16 -0
  67. data/unittest/expected/test_document_toc_single_pre.latex +35 -0
  68. data/unittest/expected/test_document_toc_single_pre2.html +15 -0
  69. data/unittest/expected/test_document_toc_single_pre2.latex +35 -0
  70. data/unittest/expected/test_html_css.html +1 -1
  71. data/unittest/expected/test_tabular.html +2 -2
  72. data/unittest/expected/test_wiki_amazon.html +2 -2
  73. data/unittest/expected/test_wiki_link.html +6 -6
  74. data/unittest/expected/test_wiki_link.latex +7 -4
  75. data/unittest/expected/test_wiki_link.wiki +6 -1
  76. data/unittest/expected/test_wiki_picture.html +3 -3
  77. data/unittest/expected/toc_css.css +15 -0
  78. data/unittest/test_docgenerator.rb +24 -1
  79. data/unittest/unittest_docgenerator.rb +166 -37
  80. data/unittest/unittest_wiki2doc.rb +9 -1
  81. metadata +75 -8
  82. data/unittest/expected/test_beamer_note.html +0 -1
  83. data/unittest/expected/test_beamer_note.text +0 -1
  84. data/unittest/expected/test_beamer_note.wiki +0 -1
@@ -0,0 +1,64 @@
1
+ <<prefix>>
2
+ \documentclass[ngerman]{scrartcl}
3
+ \usepackage{babel}
4
+ \usepackage[ansinew]{inputenc}
5
+ \usepackage{hyperref}
6
+ % ----------------------------------------------------------------
7
+
8
+ \title{Testdokument for toc-command}
9
+ \hypersetup{pdftitle={Testdokument for toc-command}}
10
+
11
+ % ----------------------------------------------------------------
12
+ \begin{document}
13
+ \begingroup
14
+
15
+ \begin{itemize}
16
+
17
+ \item \hyperlink{toc1}{Abschnitt 1}
18
+ \begin{itemize}
19
+
20
+ \item \hyperlink{toc2}{Abschnitt 1.1}
21
+
22
+ \item \hyperlink{toc3}{Abschnitt 1.2}
23
+ \end{itemize}
24
+
25
+
26
+
27
+ \item \hyperlink{toc4}{Abschnitt 2}
28
+ \begin{itemize}
29
+
30
+ \item \hyperlink{toc5}{Abschnitt 2.1}
31
+ \end{itemize}
32
+
33
+
34
+
35
+ \item \hyperlink{sect3}{Abschnitt 3}
36
+ \end{itemize}
37
+
38
+
39
+ \endgroup
40
+ \section{Abschnitt 1}\hypertarget{toc1}{}
41
+
42
+
43
+ Text zu Abschnitt 1
44
+
45
+ \subsection{Abschnitt 1.1}\hypertarget{toc2}{}
46
+
47
+
48
+ Text zu Abschnitt 1.1
49
+
50
+ \subsection{Abschnitt 1.2}\hypertarget{toc3}{}
51
+ \section{Abschnitt 2}\hypertarget{toc4}{}
52
+
53
+
54
+ Text zu Abschnitt 2
55
+
56
+ \subsection{Abschnitt 2.1}\hypertarget{toc5}{}
57
+
58
+
59
+ Text zu Abschnitt 2.1
60
+
61
+ \section{Abschnitt 3}\hypertarget{sect3}{}
62
+
63
+ \end{document}
64
+ % ----------------------------------------------------------------
@@ -0,0 +1,18 @@
1
+ <div id = "toc" >
2
+ <ul >
3
+ <li ><a href = "#toc1" >Abschnitt 1</a><ul >
4
+ <li ><a href = "#toc2" >Abschnitt 1.1</a><ul >
5
+ <li ><a href = "#toc3" >Abschnitt 1.1.1</a></li>
6
+ </ul>
7
+ </li>
8
+ </ul>
9
+ </li>
10
+ <li ><a href = "#toc6" >Abschnitt 2</a><ul >
11
+ <li ><a href = "#toc7" >Abschnitt 2.1</a><ul >
12
+ <li ><a href = "#toc8" >Abschnitt 2.1.1</a></li>
13
+ </ul>
14
+ </li>
15
+ </ul>
16
+ </li>
17
+ </ul>
18
+ </div>
@@ -0,0 +1,35 @@
1
+ \begingroup
2
+
3
+ \begin{itemize}
4
+
5
+ \item \hyperlink{toc1}{Abschnitt 1}
6
+ \begin{itemize}
7
+
8
+ \item \hyperlink{toc2}{Abschnitt 1.1}
9
+ \begin{itemize}
10
+
11
+ \item \hyperlink{toc3}{Abschnitt 1.1.1}
12
+ \end{itemize}
13
+
14
+
15
+ \end{itemize}
16
+
17
+
18
+
19
+ \item \hyperlink{toc6}{Abschnitt 2}
20
+ \begin{itemize}
21
+
22
+ \item \hyperlink{toc7}{Abschnitt 2.1}
23
+ \begin{itemize}
24
+
25
+ \item \hyperlink{toc8}{Abschnitt 2.1.1}
26
+ \end{itemize}
27
+
28
+
29
+ \end{itemize}
30
+
31
+
32
+ \end{itemize}
33
+
34
+
35
+ \endgroup
@@ -0,0 +1,6 @@
1
+ <div id = "toc" >
2
+ <ul >
3
+ <li ><a href = "#toc1" >Abschnitt 1</a></li>
4
+ <li ><a href = "#toc6" >Abschnitt 2</a></li>
5
+ </ul>
6
+ </div>
@@ -0,0 +1,11 @@
1
+ \begingroup
2
+
3
+ \begin{itemize}
4
+
5
+ \item \hyperlink{toc1}{Abschnitt 1}
6
+
7
+ \item \hyperlink{toc6}{Abschnitt 2}
8
+ \end{itemize}
9
+
10
+
11
+ \endgroup
@@ -0,0 +1,24 @@
1
+ <div id = "toc" >
2
+ <ul >
3
+ <li ><a href = "#toc1" >Abschnitt 1</a><ul >
4
+ <li ><a href = "#toc2" >Abschnitt 1.1</a><ul >
5
+ <li ><a href = "#toc3" >Abschnitt 1.1.1</a><ul >
6
+ <li ><a href = "#toc4" >Abschnitt 1.1.1.1</a></li>
7
+ </ul>
8
+ </li>
9
+ </ul>
10
+ </li>
11
+ </ul>
12
+ </li>
13
+ <li ><a href = "#toc6" >Abschnitt 2</a><ul >
14
+ <li ><a href = "#toc7" >Abschnitt 2.1</a><ul >
15
+ <li ><a href = "#toc8" >Abschnitt 2.1.1</a><ul >
16
+ <li ><a href = "#toc9" >Abschnitt 2.1.1.1</a></li>
17
+ </ul>
18
+ </li>
19
+ </ul>
20
+ </li>
21
+ </ul>
22
+ </li>
23
+ </ul>
24
+ </div>
@@ -0,0 +1,47 @@
1
+ \begingroup
2
+
3
+ \begin{itemize}
4
+
5
+ \item \hyperlink{toc1}{Abschnitt 1}
6
+ \begin{itemize}
7
+
8
+ \item \hyperlink{toc2}{Abschnitt 1.1}
9
+ \begin{itemize}
10
+
11
+ \item \hyperlink{toc3}{Abschnitt 1.1.1}
12
+ \begin{itemize}
13
+
14
+ \item \hyperlink{toc4}{Abschnitt 1.1.1.1}
15
+ \end{itemize}
16
+
17
+
18
+ \end{itemize}
19
+
20
+
21
+ \end{itemize}
22
+
23
+
24
+
25
+ \item \hyperlink{toc6}{Abschnitt 2}
26
+ \begin{itemize}
27
+
28
+ \item \hyperlink{toc7}{Abschnitt 2.1}
29
+ \begin{itemize}
30
+
31
+ \item \hyperlink{toc8}{Abschnitt 2.1.1}
32
+ \begin{itemize}
33
+
34
+ \item \hyperlink{toc9}{Abschnitt 2.1.1.1}
35
+ \end{itemize}
36
+
37
+
38
+ \end{itemize}
39
+
40
+
41
+ \end{itemize}
42
+
43
+
44
+ \end{itemize}
45
+
46
+
47
+ \endgroup
@@ -0,0 +1,34 @@
1
+ <div id = "toc" >
2
+ <ul >
3
+ <li ><ul >
4
+ <li ><a href = "#toc1" >Abschnitt 1.1</a><ul >
5
+ <li ><a href = "#toc2" >Abschnitt 1.1.1</a><ul >
6
+ <li ><a href = "#toc3" >Abschnitt 1.1.1.1</a></li>
7
+ </ul>
8
+ </li>
9
+ </ul>
10
+ </li>
11
+ </ul>
12
+ </li>
13
+ <li ><a href = "#toc4" >Abschnitt 2</a><ul >
14
+ <li ><ul >
15
+ <li ><a href = "#toc5" >Abschnitt 2.1.1</a><ul >
16
+ <li ><a href = "#toc6" >Abschnitt 2.1.1.1</a></li>
17
+ </ul>
18
+ </li>
19
+ </ul>
20
+ </li>
21
+ </ul>
22
+ </li>
23
+ <li ><a href = "#toc7" >Abschnitt 3</a><ul >
24
+ <li ><ul >
25
+ <li ><ul >
26
+ <li ><a href = "#toc8" >Abschnitt 3.1.1.1</a></li>
27
+ </ul>
28
+ </li>
29
+ </ul>
30
+ </li>
31
+ </ul>
32
+ </li>
33
+ </ul>
34
+ </div>
@@ -0,0 +1,37 @@
1
+ \begingroup
2
+
3
+ \begin{itemize}
4
+
5
+ \item
6
+ \begin{itemize}
7
+
8
+ \item \hyperlink{toc1}{Abschnitt 1.1}
9
+ \begin{itemize}
10
+
11
+ \item \hyperlink{toc2}{Abschnitt 1.1.1}
12
+ \end{itemize}
13
+
14
+
15
+ \end{itemize}
16
+
17
+
18
+
19
+ \item \hyperlink{toc4}{Abschnitt 2}
20
+ \begin{itemize}
21
+
22
+ \item
23
+ \begin{itemize}
24
+
25
+ \item \hyperlink{toc5}{Abschnitt 2.1.1}
26
+ \end{itemize}
27
+
28
+
29
+ \end{itemize}
30
+
31
+
32
+
33
+ \item \hyperlink{toc7}{Abschnitt 3}
34
+ \end{itemize}
35
+
36
+
37
+ \endgroup
@@ -0,0 +1,4 @@
1
+ WARN docgenerator: Toc: Jump over section level 1 ()
2
+ WARN docgenerator: Toc: Jump over section level 2 ()
3
+ WARN docgenerator: Toc: Jump over section level 3 ()
4
+ WARN docgenerator: Toc: Jump over section level 4 ()
@@ -0,0 +1,30 @@
1
+ <div id = "toc" >
2
+ <ul >
3
+ <li ><a href = "#toc1" >Abschnitt 1</a><ul >
4
+ <li ><a href = "#toc2" >Abschnitt 1.1</a><ul >
5
+ <li ><a href = "#toc3" >Abschnitt 1.1.1</a><ul >
6
+ <li ><a href = "#toc4" >Abschnitt 1.1.1.1</a><ul >
7
+ <li ><a href = "#toc5" >Abschnitt 1.1.1.1.1</a></li>
8
+ </ul>
9
+ </li>
10
+ </ul>
11
+ </li>
12
+ </ul>
13
+ </li>
14
+ </ul>
15
+ </li>
16
+ <li ><a href = "#toc6" >Abschnitt 2</a><ul >
17
+ <li ><a href = "#toc7" >Abschnitt 2.1</a><ul >
18
+ <li ><a href = "#toc8" >Abschnitt 2.1.1</a><ul >
19
+ <li ><a href = "#toc9" >Abschnitt 2.1.1.1</a><ul >
20
+ <li ><a href = "#toc10" >Abschnitt 2.1.1.1.1</a></li>
21
+ </ul>
22
+ </li>
23
+ </ul>
24
+ </li>
25
+ </ul>
26
+ </li>
27
+ </ul>
28
+ </li>
29
+ </ul>
30
+ </div>
@@ -0,0 +1,34 @@
1
+ <!--
2
+ <<prefix>>
3
+ -->
4
+ <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
5
+ <html>
6
+ <head >
7
+ <title>Testdokument for toc-command</title>
8
+ </head>
9
+ <body ><div id = "toc" >
10
+ <ul >
11
+ <li ><a href = "#toc1" >Abschnitt 1</a><ul >
12
+ <li ><a href = "#toc2" >Abschnitt 1.1</a></li>
13
+ <li ><a href = "#toc3" >Abschnitt 1.2</a></li>
14
+ </ul>
15
+ </li>
16
+ <li ><a href = "#toc4" >Abschnitt 2</a><ul >
17
+ <li ><a href = "#toc5" >Abschnitt 2.1</a></li>
18
+ </ul>
19
+ </li>
20
+ <li ><a href = "#sect3" >Abschnitt 3</a></li>
21
+ </ul>
22
+ </div>
23
+ <h1 id = "toc1" >Abschnitt 1</h1>
24
+ <p >Text zu Abschnitt 1</p>
25
+ <h2 id = "toc2" >Abschnitt 1.1</h2>
26
+ <p >Text zu Abschnitt 1.1</p>
27
+ <h2 id = "toc3" >Abschnitt 1.2</h2>
28
+ <h1 id = "toc4" >Abschnitt 2</h1>
29
+ <p >Text zu Abschnitt 2</p>
30
+ <h2 id = "toc5" >Abschnitt 2.1</h2>
31
+ <p >Text zu Abschnitt 2.1</p>
32
+ <h1 id = "sect3" >Abschnitt 3</h1>
33
+ </body>
34
+ </html>
@@ -0,0 +1,14 @@
1
+ <div id = "toc" >
2
+ <ul >
3
+ <li ><a href = "test.html/#toc1" >Abschnitt 1</a><ul >
4
+ <li ><a href = "test.html/#toc2" >Abschnitt 1.1</a></li>
5
+ <li ><a href = "test.html/#toc3" >Abschnitt 1.2</a></li>
6
+ </ul>
7
+ </li>
8
+ <li ><a href = "test.html/#toc4" >Abschnitt 2</a><ul >
9
+ <li ><a href = "test.html/#toc5" >Abschnitt 2.1</a></li>
10
+ </ul>
11
+ </li>
12
+ <li ><a href = "test.html/#sect3" >Abschnitt 3</a></li>
13
+ </ul>
14
+ </div>
@@ -0,0 +1,27 @@
1
+ \begingroup
2
+
3
+ \begin{itemize}
4
+
5
+ \item \hyperlink{toc1}{Abschnitt 1}
6
+ \begin{itemize}
7
+
8
+ \item \hyperlink{toc2}{Abschnitt 1.1}
9
+
10
+ \item \hyperlink{toc3}{Abschnitt 1.2}
11
+ \end{itemize}
12
+
13
+
14
+
15
+ \item \hyperlink{toc4}{Abschnitt 2}
16
+ \begin{itemize}
17
+
18
+ \item \hyperlink{toc5}{Abschnitt 2.1}
19
+ \end{itemize}
20
+
21
+
22
+
23
+ \item \hyperlink{sect3}{Abschnitt 3}
24
+ \end{itemize}
25
+
26
+
27
+ \endgroup
@@ -0,0 +1,16 @@
1
+ <div id = "toc" >
2
+ <p >Pretext</p>
3
+ <ul >
4
+ <li ><a href = "#toc1" >Abschnitt 1</a><ul >
5
+ <li ><a href = "#toc2" >Abschnitt 1.1</a></li>
6
+ <li ><a href = "#toc3" >Abschnitt 1.2</a></li>
7
+ </ul>
8
+ </li>
9
+ <li ><a href = "#toc4" >Abschnitt 2</a><ul >
10
+ <li ><a href = "#toc5" >Abschnitt 2.1</a></li>
11
+ </ul>
12
+ </li>
13
+ <li ><a href = "#sect3" >Abschnitt 3</a></li>
14
+ </ul>
15
+ <p >Posttext</p>
16
+ </div>
@@ -0,0 +1,35 @@
1
+ \begingroup
2
+
3
+
4
+ Pretext
5
+
6
+
7
+ \begin{itemize}
8
+
9
+ \item \hyperlink{toc1}{Abschnitt 1}
10
+ \begin{itemize}
11
+
12
+ \item \hyperlink{toc2}{Abschnitt 1.1}
13
+
14
+ \item \hyperlink{toc3}{Abschnitt 1.2}
15
+ \end{itemize}
16
+
17
+
18
+
19
+ \item \hyperlink{toc4}{Abschnitt 2}
20
+ \begin{itemize}
21
+
22
+ \item \hyperlink{toc5}{Abschnitt 2.1}
23
+ \end{itemize}
24
+
25
+
26
+
27
+ \item \hyperlink{sect3}{Abschnitt 3}
28
+ \end{itemize}
29
+
30
+
31
+
32
+ Posttext
33
+
34
+
35
+ \endgroup
@@ -0,0 +1,15 @@
1
+ <div id = "toc" >
2
+ <ul ><li >1</li><li >2</li></ul><ul >
3
+ <li ><a href = "#toc1" >Abschnitt 1</a><ul >
4
+ <li ><a href = "#toc2" >Abschnitt 1.1</a></li>
5
+ <li ><a href = "#toc3" >Abschnitt 1.2</a></li>
6
+ </ul>
7
+ </li>
8
+ <li ><a href = "#toc4" >Abschnitt 2</a><ul >
9
+ <li ><a href = "#toc5" >Abschnitt 2.1</a></li>
10
+ </ul>
11
+ </li>
12
+ <li ><a href = "#sect3" >Abschnitt 3</a></li>
13
+ </ul>
14
+ <ul ><li >1</li><li >2</li></ul>
15
+ </div>
@@ -0,0 +1,35 @@
1
+ \begingroup
2
+
3
+ \begin{itemize}
4
+ \item 1
5
+ \item 2\end{itemize}
6
+
7
+ \begin{itemize}
8
+
9
+ \item \hyperlink{toc1}{Abschnitt 1}
10
+ \begin{itemize}
11
+
12
+ \item \hyperlink{toc2}{Abschnitt 1.1}
13
+
14
+ \item \hyperlink{toc3}{Abschnitt 1.2}
15
+ \end{itemize}
16
+
17
+
18
+
19
+ \item \hyperlink{toc4}{Abschnitt 2}
20
+ \begin{itemize}
21
+
22
+ \item \hyperlink{toc5}{Abschnitt 2.1}
23
+ \end{itemize}
24
+
25
+
26
+
27
+ \item \hyperlink{sect3}{Abschnitt 3}
28
+ \end{itemize}
29
+
30
+
31
+ \begin{itemize}
32
+ \item 1
33
+ \item 2\end{itemize}
34
+
35
+ \endgroup
@@ -1 +1 @@
1
- <div >Block 1<span style = "background-color: blue;color: red" >Zwischenblock</span>Ende Block 1</div>
1
+ <div >Block 1<span style = "background-color: blue;color: red;" >Zwischenblock</span>Ende Block 1</div>
@@ -1,7 +1,7 @@
1
1
 
2
2
  <table >
3
- <tr style = "border-bottom-width: thick;border-bottom-style: solid" ><td colspan = "4" >Titel over all columns</td></tr>
4
- <tr style = "border-bottom-width: thick;border-bottom-style: solid" ><td colspan = "4" >SubTitel over all columns</td></tr>
3
+ <tr style = "border-bottom-style: solid;border-bottom-width: thick;" ><td colspan = "4" >Titel over all columns</td></tr>
4
+ <tr style = "border-bottom-style: solid;border-bottom-width: thick;" ><td colspan = "4" >SubTitel over all columns</td></tr>
5
5
  <tr ><td >1A</td><td >1B</td><td >1C</td><td >1D</td></tr>
6
6
  <tr ><td >2A</td><td >2B</td><td >2C</td><td >2D</td></tr>
7
7
  <tr ><td >3A</td><td >3B</td><td >3C</td><td >3D</td></tr>
@@ -1,10 +1,10 @@
1
1
  <p >
2
- <iframe src = "http://rcm-de.amazon.de/e/cm?t=lickertnet-21&o=3&p=8&l=as1&asins=B000AFEJAM&fc1=000000&IS2=1&lt1=_blank&lc1=0000ff&bc1=000000&bg1=ffffff&f=ifr" marginwidth = "0" marginheight = "0" frameborder = "0" scrolling = "no" style = "height: 240px;width: 120px" >
2
+ <iframe src = "http://rcm-de.amazon.de/e/cm?t=lickertnet-21&o=3&p=8&l=as1&asins=B000AFEJAM&fc1=000000&IS2=1&lt1=_blank&lc1=0000ff&bc1=000000&bg1=ffffff&f=ifr" marginwidth = "0" marginheight = "0" frameborder = "0" scrolling = "no" style = "height: 240px;width: 120px;" >
3
3
  Ihr Browser kann leider keine eingebetteten Frames anzeigen. Sie k&ouml;nnen die eingebettete Seite &uuml;ber den folgenden Verweis aufrufen: <a href = "http://www.amazon.de/exec/obidos/ASIN/B000AFEJAM/lickertnet-21" >Amazon</a>
4
4
  </iframe>
5
5
  </p>
6
6
  <p >
7
- <iframe src = "http://rcm-de.amazon.de/e/cm?t=lickertnet-21&o=3&p=8&l=as1&asins=B000AFEJAM&fc1=000000&IS2=1&lt1=_blank&lc1=0000ff&bc1=000000&bg1=ffffff&f=ifr" marginwidth = "0" marginheight = "0" frameborder = "0" scrolling = "no" style = "height: 240px;float: right;width: 120px" >
7
+ <iframe src = "http://rcm-de.amazon.de/e/cm?t=lickertnet-21&o=3&p=8&l=as1&asins=B000AFEJAM&fc1=000000&IS2=1&lt1=_blank&lc1=0000ff&bc1=000000&bg1=ffffff&f=ifr" marginwidth = "0" marginheight = "0" frameborder = "0" scrolling = "no" style = "float: right;height: 240px;width: 120px;" >
8
8
  Ihr Browser kann leider keine eingebetteten Frames anzeigen. Sie k&ouml;nnen die eingebettete Seite &uuml;ber den folgenden Verweis aufrufen: <a href = "http://www.amazon.de/exec/obidos/ASIN/B000AFEJAM/lickertnet-21" >Amazon</a>
9
9
  </iframe>
10
10
  </p>
@@ -1,8 +1,8 @@
1
- <p >
2
- <a href = "./unittest_wiki2doc.rb" >link to test</a>
3
-
1
+ <p >text before <a href = "./unittest_wiki2doc.rb" >link to test</a> text after
4
2
  </p>
5
- <p >
6
- <a href = "./unexisting_file.xx" >link with error</a>
7
-
3
+ <p >text before
4
+ <a href = "./unittest_wiki2doc.rb" >link to test</a>
5
+ text after
6
+ </p>
7
+ <p ><a href = "./unexisting_file.xx" >link with error</a>
8
8
  </p>
@@ -1,14 +1,17 @@
1
1
 
2
2
 
3
+ text before \href{./unittest_wiki2doc.rb}{link to test} text after
3
4
 
4
- \href{./unittest_wiki2doc.rb}{link to test}
5
-
6
5
 
7
6
 
8
7
 
8
+ text before
9
+ \href{./unittest_wiki2doc.rb}{link to test}
10
+ text after
9
11
 
10
12
 
11
- \href{./unexisting_file.xx}{link with error}
12
-
13
+
14
+
15
+ \href{./unexisting_file.xx}{link with error}
13
16
 
14
17
 
@@ -1,5 +1,10 @@
1
1
 
2
- [./unittest_wiki2doc.rb link to test]
2
+ text before [./unittest_wiki2doc.rb link to test] text after
3
+
4
+
5
+ text before
6
+ [./unittest_wiki2doc.rb link to test]
7
+ text after
3
8
 
4
9
 
5
10
  [./unexisting_file.xx link with error]
@@ -26,17 +26,17 @@ nachher
26
26
  </span>
27
27
 
28
28
  </p>
29
- <p ><span style = "float: right" >
29
+ <p ><span style = "float: right;" >
30
30
  <img src = "test.jpg" />
31
31
  </span>
32
32
 
33
- <span style = "float: left" >
33
+ <span style = "float: left;" >
34
34
  <img src = "test.jpg" />
35
35
  </span>
36
36
 
37
37
  </p>
38
38
  <p ><span >
39
- <img src = "test.jpg" style = "width: 123px" />
39
+ <img src = "test.jpg" style = "width: 123px;" />
40
40
  </span>
41
41
 
42
42
  </p>
@@ -0,0 +1,15 @@
1
+ <style type="text/css">
2
+ /*
3
+ CSS for table of contents
4
+ */
5
+ div.toc {
6
+ background: lightgray;
7
+ border: 2px solid;
8
+ float: right;
9
+ width: 45%;
10
+ }
11
+ div.toc ul li a {
12
+ font-size: xx-small;
13
+ font-weight: normal;
14
+ }
15
+ </style>
@@ -1,7 +1,6 @@
1
1
  require 'test/unit'
2
2
  require 'tempfile' #needed to get logger.data
3
3
 
4
-
5
4
  $: << '../lib'
6
5
  require 'docgenerator'
7
6
  require 'wiki2doc/wiki2docgenerator'
@@ -16,6 +15,30 @@ $fixmes = []
16
15
  #~ puts $fixmes.join("\n")
17
16
  #~ }
18
17
 
18
+ #
19
+ #Two methods to catch and check logger content.
20
+ module Temp_Logger
21
+ #Redirect Logger data to temporary file
22
+ def set_temporary_logger( level = Log4r::WARN )
23
+ templogfile = Tempfile.new("xxx_warn.log")
24
+ @loglevel = DOCGENERATOR_LOGGER.level
25
+ @outputter = DOCGENERATOR_LOGGER.outputters.first
26
+ DOCGENERATOR_LOGGER.level = level
27
+ DOCGENERATOR_LOGGER.outputters = Log4r::IOOutputter.new('log_xxx', templogfile )
28
+ return templogfile
29
+ end
30
+ #Get temporary data and reset logger.
31
+ def get_temporary_logger(templogfile)
32
+ templogfile.close()
33
+ templogfile.open()
34
+ templogfile_content = templogfile.readlines.to_s
35
+ templogfile.close(true)
36
+ DOCGENERATOR_LOGGER.level = @loglevel
37
+ DOCGENERATOR_LOGGER.outputters = @outputter
38
+ return templogfile_content
39
+ end
40
+ end
41
+
19
42
  require 'ftools'
20
43
  class Test::Unit::TestCase
21
44
  #