org-ruby 0.4.0 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. data/History.txt +45 -40
  2. data/{README.txt → README.rdoc} +66 -66
  3. data/Rakefile +28 -27
  4. data/bin/org-ruby +40 -40
  5. data/lib/org-ruby.rb +50 -50
  6. data/lib/org-ruby/headline.rb +80 -80
  7. data/lib/org-ruby/html_output_buffer.rb +117 -105
  8. data/lib/org-ruby/line.rb +178 -173
  9. data/lib/org-ruby/output_buffer.rb +172 -172
  10. data/lib/org-ruby/parser.rb +80 -80
  11. data/lib/org-ruby/regexp_helper.rb +156 -156
  12. data/lib/org-ruby/textile_output_buffer.rb +67 -67
  13. data/spec/data/freeform.org +111 -111
  14. data/spec/data/hyp-planning.org +335 -335
  15. data/spec/data/remember.org +53 -53
  16. data/spec/headline_spec.rb +55 -55
  17. data/spec/html_examples/advanced-lists.html +31 -31
  18. data/spec/html_examples/advanced-lists.org +31 -31
  19. data/spec/html_examples/block_code.html +30 -30
  20. data/spec/html_examples/block_code.org +35 -35
  21. data/spec/html_examples/blockquote.html +7 -7
  22. data/spec/html_examples/blockquote.org +13 -13
  23. data/spec/html_examples/code-comment.html +19 -0
  24. data/spec/html_examples/code-comment.org +22 -0
  25. data/spec/html_examples/escape-pre.html +7 -7
  26. data/spec/html_examples/escape-pre.org +6 -6
  27. data/spec/html_examples/html-literal.html +2 -0
  28. data/spec/html_examples/html-literal.org +6 -0
  29. data/spec/html_examples/inline-formatting.html +10 -10
  30. data/spec/html_examples/inline-formatting.org +17 -17
  31. data/spec/html_examples/lists.html +19 -19
  32. data/spec/html_examples/lists.org +36 -36
  33. data/spec/html_examples/metadata-comment.org-fail +30 -0
  34. data/spec/html_examples/only-list.html +5 -5
  35. data/spec/html_examples/only-list.org +3 -3
  36. data/spec/html_examples/only-table.html +6 -6
  37. data/spec/html_examples/only-table.org +5 -5
  38. data/spec/html_examples/tables.html +20 -20
  39. data/spec/html_examples/tables.org +26 -26
  40. data/spec/html_examples/text.html +2 -2
  41. data/spec/html_examples/text.org +16 -16
  42. data/spec/line_spec.rb +89 -89
  43. data/spec/parser_spec.rb +86 -86
  44. data/spec/regexp_helper_spec.rb +57 -57
  45. data/spec/spec_helper.rb +20 -20
  46. data/spec/textile_examples/block_code.org +35 -35
  47. data/spec/textile_examples/block_code.textile +29 -29
  48. data/spec/textile_examples/blockquote.org +13 -13
  49. data/spec/textile_examples/blockquote.textile +11 -11
  50. data/spec/textile_examples/keywords.org +13 -13
  51. data/spec/textile_examples/keywords.textile +11 -11
  52. data/spec/textile_examples/links.org +11 -11
  53. data/spec/textile_examples/links.textile +10 -10
  54. data/spec/textile_examples/lists.org +36 -36
  55. data/spec/textile_examples/lists.textile +20 -20
  56. data/spec/textile_examples/single-space-plain-list.org +13 -13
  57. data/spec/textile_examples/single-space-plain-list.textile +10 -10
  58. data/spec/textile_examples/tables.org +26 -26
  59. data/spec/textile_examples/tables.textile +23 -23
  60. data/spec/textile_output_buffer_spec.rb +21 -21
  61. data/tasks/test_case.rake +49 -49
  62. metadata +10 -6
  63. data/.bnsignore +0 -18
@@ -1,7 +1,7 @@
1
- <p class="title">BLOCKQUOTE</p>
2
- <p>Testing that I can have block quotes:</p>
3
- <blockquote>
4
- <p><i>Example:</i></p>
5
- <p>This is blockquote text.</p>
6
- </blockquote>
7
- <p>And now I&#8217;m back to normal text!</p>
1
+ <p class="title">BLOCKQUOTE</p>
2
+ <p>Testing that I can have block quotes:</p>
3
+ <blockquote>
4
+ <p><i>Example:</i></p>
5
+ <p>This is blockquote text.</p>
6
+ </blockquote>
7
+ <p>And now I&#8217;m back to normal text!</p>
@@ -1,13 +1,13 @@
1
- BLOCKQUOTE
2
-
3
- Testing that I can have block quotes:
4
-
5
- #+BEGIN_QUOTE
6
-
7
- /Example:/
8
-
9
- This is blockquote text.
10
-
11
- #+END_QUOTE
12
-
13
- And now I'm back to normal text!
1
+ BLOCKQUOTE
2
+
3
+ Testing that I can have block quotes:
4
+
5
+ #+BEGIN_QUOTE
6
+
7
+ /Example:/
8
+
9
+ This is blockquote text.
10
+
11
+ #+END_QUOTE
12
+
13
+ And now I'm back to normal text!
@@ -0,0 +1,19 @@
1
+ <h1 class="title">Code Comment</h1>
2
+ <p>I need to be able to export things that look like org-mode comments inside of code blocks, like this:</p>
3
+ <pre>
4
+
5
+ #+TITLE: orgmode_parser.org
6
+ #+AUTHOR:
7
+ #+EMAIL: brian@BRIAN-DESK
8
+ #+DATE: 2009-12-29 Tue
9
+ #+DESCRIPTION:
10
+ #+KEYWORDS:
11
+ #+LANGUAGE: en
12
+ #+OPTIONS: H:3 num:t toc:nil \n:nil @:t ::t |:t ^:t -:t f:t *:t &lt;:t
13
+ #+OPTIONS: TeX:t LaTeX:nil skip:nil d:nil todo:t pri:nil tags:not-in-toc
14
+ #+INFOJS_OPT: view:nil toc:nil ltoc:t mouse:underline buttons:0 path:http://orgmode.org/org-info.js
15
+ #+EXPORT_SELECT_TAGS: export
16
+ #+EXPORT_EXCLUDE_TAGS: noexport
17
+ #+LINK_UP:
18
+ #+LINK_HOME:
19
+ </pre>
@@ -0,0 +1,22 @@
1
+ * Code Comment
2
+
3
+ I need to be able to export things that look like org-mode comments
4
+ inside of code blocks, like this:
5
+
6
+ #+BEGIN_EXAMPLE
7
+ #+TITLE: orgmode_parser.org
8
+ #+AUTHOR:
9
+ #+EMAIL: brian@BRIAN-DESK
10
+ #+DATE: 2009-12-29 Tue
11
+ #+DESCRIPTION:
12
+ #+KEYWORDS:
13
+ #+LANGUAGE: en
14
+ #+OPTIONS: H:3 num:t toc:nil \n:nil @:t ::t |:t ^:t -:t f:t *:t <:t
15
+ #+OPTIONS: TeX:t LaTeX:nil skip:nil d:nil todo:t pri:nil tags:not-in-toc
16
+ #+INFOJS_OPT: view:nil toc:nil ltoc:t mouse:underline buttons:0 path:http://orgmode.org/org-info.js
17
+ #+EXPORT_SELECT_TAGS: export
18
+ #+EXPORT_EXCLUDE_TAGS: noexport
19
+ #+LINK_UP:
20
+ #+LINK_HOME:
21
+ #+END_EXAMPLE
22
+
@@ -1,7 +1,7 @@
1
- <pre>
2
-
3
- &lt;li&gt;[ ] &amp;#8220;smart quotes&amp;#8221;&lt;/li&gt;
4
- &lt;li&gt;[ ] I think I need this for &amp;#8216;single quotes&amp;#8217; too. Don&amp;#8217;t I?&lt;/li&gt;
5
- &lt;li&gt;[ ] Em dashes would be great &amp;#8212; wouldn&amp;#8217;t they?&lt;/li&gt;
6
- &lt;li&gt;[ ] I hope to develop an en dash sometime in 2010 &amp;#8211; 2011.&lt;/li&gt;
7
- </pre>
1
+ <pre>
2
+
3
+ &lt;li&gt;[ ] &amp;#8220;smart quotes&amp;#8221;&lt;/li&gt;
4
+ &lt;li&gt;[ ] I think I need this for &amp;#8216;single quotes&amp;#8217; too. Don&amp;#8217;t I?&lt;/li&gt;
5
+ &lt;li&gt;[ ] Em dashes would be great &amp;#8212; wouldn&amp;#8217;t they?&lt;/li&gt;
6
+ &lt;li&gt;[ ] I hope to develop an en dash sometime in 2010 &amp;#8211; 2011.&lt;/li&gt;
7
+ </pre>
@@ -1,6 +1,6 @@
1
- #+BEGIN_EXAMPLE
2
- <li>[ ] &#8220;smart quotes&#8221;</li>
3
- <li>[ ] I think I need this for &#8216;single quotes&#8217; too. Don&#8217;t I?</li>
4
- <li>[ ] Em dashes would be great &#8212; wouldn&#8217;t they?</li>
5
- <li>[ ] I hope to develop an en dash sometime in 2010 &#8211; 2011.</li>
6
- #+END_EXAMPLE
1
+ #+BEGIN_EXAMPLE
2
+ <li>[ ] &#8220;smart quotes&#8221;</li>
3
+ <li>[ ] I think I need this for &#8216;single quotes&#8217; too. Don&#8217;t I?</li>
4
+ <li>[ ] Em dashes would be great &#8212; wouldn&#8217;t they?</li>
5
+ <li>[ ] I hope to develop an en dash sometime in 2010 &#8211; 2011.</li>
6
+ #+END_EXAMPLE
@@ -0,0 +1,2 @@
1
+ <p class="title">HTML literals</p>
2
+ <p>ORG escapes HTML by default. This should &lt;b&gt;not be bold text!&lt;/b&gt; Instead, it should look like regular text with some HTML tags around it.</p>
@@ -0,0 +1,6 @@
1
+ HTML literals
2
+
3
+ ORG escapes HTML by default. This should <b>not be bold text!</b>
4
+ Instead, it should look like regular text with some HTML tags around
5
+ it.
6
+
@@ -1,10 +1,10 @@
1
- <p class="title">Inline Formatting</p>
2
- <p>I want to make sure I handle all inline formatting. I need to handle <b>bold</b>, <i>italic</i>, <code>code</code>, <code>verbatim</code>, <span style="text-decoration:underline;">underline</span>, <del>strikethrough</del>.</p>
3
- <p>In addition, I need to make sure I can handle links. We&#8217;ve got simple links, like this:</p>
4
- <ul>
5
- <li><a href="http://www.bing.com">http://www.bing.com</a></li>
6
- <li><a href="http://www.google.com">http://www.google.com</a></li>
7
- <li>http://www.gmail.com</li>
8
- </ul>
9
- <p>Note the last one <b>is not</b> a link, as the source doesn&#8217;t include it in double-brackets and I don&#8217;t auto-recognize URLs.</p>
10
- <p>I should also handle links with <a href="http://www.xkcd.com">helpful text</a>.</p>
1
+ <p class="title">Inline Formatting</p>
2
+ <p>I want to make sure I handle all inline formatting. I need to handle <b>bold</b>, <i>italic</i>, <code>code</code>, <code>verbatim</code>, <span style="text-decoration:underline;">underline</span>, <del>strikethrough</del>.</p>
3
+ <p>In addition, I need to make sure I can handle links. We&#8217;ve got simple links, like this:</p>
4
+ <ul>
5
+ <li><a href="http://www.bing.com">http://www.bing.com</a></li>
6
+ <li><a href="http://www.google.com">http://www.google.com</a></li>
7
+ <li>http://www.gmail.com</li>
8
+ </ul>
9
+ <p>Note the last one <b>is not</b> a link, as the source doesn&#8217;t include it in double-brackets and I don&#8217;t auto-recognize URLs.</p>
10
+ <p>I should also handle links with <a href="http://www.xkcd.com">helpful text</a>.</p>
@@ -1,17 +1,17 @@
1
- Inline Formatting
2
-
3
- I want to make sure I handle all inline formatting. I need to handle
4
- *bold*, /italic/, =code=, ~verbatim~, _underline_, +strikethrough+.
5
-
6
- In addition, I need to make sure I can handle links. We've got simple
7
- links, like this:
8
-
9
- - [[http://www.bing.com]]
10
- - [[http://www.google.com]]
11
- - http://www.gmail.com
12
-
13
- Note the last one *is not* a link, as the source doesn't include it in
14
- double-brackets and I don't auto-recognize URLs.
15
-
16
- I should also handle links with [[http://www.xkcd.com][helpful text]].
17
-
1
+ Inline Formatting
2
+
3
+ I want to make sure I handle all inline formatting. I need to handle
4
+ *bold*, /italic/, =code=, ~verbatim~, _underline_, +strikethrough+.
5
+
6
+ In addition, I need to make sure I can handle links. We've got simple
7
+ links, like this:
8
+
9
+ - [[http://www.bing.com]]
10
+ - [[http://www.google.com]]
11
+ - http://www.gmail.com
12
+
13
+ Note the last one *is not* a link, as the source doesn't include it in
14
+ double-brackets and I don't auto-recognize URLs.
15
+
16
+ I should also handle links with [[http://www.xkcd.com][helpful text]].
17
+
@@ -1,19 +1,19 @@
1
- <h1 class="title">Lists</h1>
2
- <p>I want to make sure I have great support for lists.</p>
3
- <ul>
4
- <li>This is an unordered list</li>
5
- <li>This continues the unordered list</li>
6
- </ul>
7
- <p>And this is a paragraph <b>after</b> the list.</p>
8
- <h2>Wrapping within the list</h2>
9
- <ul>
10
- <li>This is a single-line list item in the org file.</li>
11
- <li>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.</li>
12
- <li>And this is the next item. The previous item needs to be on one line to keep <code>textile</code> happy.</li>
13
- <li>Ditto the previous line, actually.</li>
14
- </ul>
15
- <h2>Edge cases</h2>
16
- <ul>
17
- <li>This is a single-line list.</li>
18
- </ul>
19
- <p>And this is a <b>separate paragraph.</b> Note the indentation in the org file.</p>
1
+ <h1 class="title">Lists</h1>
2
+ <p>I want to make sure I have great support for lists.</p>
3
+ <ul>
4
+ <li>This is an unordered list</li>
5
+ <li>This continues the unordered list</li>
6
+ </ul>
7
+ <p>And this is a paragraph <b>after</b> the list.</p>
8
+ <h2>Wrapping within the list</h2>
9
+ <ul>
10
+ <li>This is a single-line list item in the org file.</li>
11
+ <li>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.</li>
12
+ <li>And this is the next item. The previous item needs to be on one line to keep <code>textile</code> happy.</li>
13
+ <li>Ditto the previous line, actually.</li>
14
+ </ul>
15
+ <h2>Edge cases</h2>
16
+ <ul>
17
+ <li>This is a single-line list.</li>
18
+ </ul>
19
+ <p>And this is a <b>separate paragraph.</b> Note the indentation in the org file.</p>
@@ -1,36 +1,36 @@
1
- * Lists
2
-
3
- I want to make sure I have great support for lists.
4
-
5
- - This is an unordered list
6
- - This continues the unordered list
7
-
8
- And this is a paragraph *after* the list.
9
-
10
- ** Wrapping within the list
11
-
12
- - This is a single-line list item in the org file.
13
- - Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam
14
- nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam
15
- erat, sed diam voluptua. At vero eos et accusam et justo duo
16
- dolores et ea rebum. Stet clita kasd gubergren, no sea takimata
17
- sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit
18
- amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor
19
- invidunt ut labore et dolore magna aliquyam erat, sed diam
20
- voluptua. At vero eos et accusam et justo duo dolores et ea
21
- rebum. Stet clita kasd gubergren, no sea takimata sanctus est
22
- Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet,
23
- consetetur sadipscing elitr, sed diam nonumy eirmod tempor
24
- invidunt ut labore et dolore magna aliquyam erat, sed diam
25
- voluptua. At vero eos et accusam et justo duo dolores et ea
26
- rebum. Stet clita kasd gubergren, no sea takimata sanctus est
27
- Lorem ipsum dolor sit amet.
28
- - And this is the next item. The previous item needs to be on one
29
- line to keep =textile= happy.
30
- - Ditto the previous line, actually.
31
-
32
- ** Edge cases
33
-
34
- - This is a single-line list.
35
- And this is a *separate paragraph.* Note the indentation in the org
36
- file.
1
+ * Lists
2
+
3
+ I want to make sure I have great support for lists.
4
+
5
+ - This is an unordered list
6
+ - This continues the unordered list
7
+
8
+ And this is a paragraph *after* the list.
9
+
10
+ ** Wrapping within the list
11
+
12
+ - This is a single-line list item in the org file.
13
+ - Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam
14
+ nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam
15
+ erat, sed diam voluptua. At vero eos et accusam et justo duo
16
+ dolores et ea rebum. Stet clita kasd gubergren, no sea takimata
17
+ sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit
18
+ amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor
19
+ invidunt ut labore et dolore magna aliquyam erat, sed diam
20
+ voluptua. At vero eos et accusam et justo duo dolores et ea
21
+ rebum. Stet clita kasd gubergren, no sea takimata sanctus est
22
+ Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet,
23
+ consetetur sadipscing elitr, sed diam nonumy eirmod tempor
24
+ invidunt ut labore et dolore magna aliquyam erat, sed diam
25
+ voluptua. At vero eos et accusam et justo duo dolores et ea
26
+ rebum. Stet clita kasd gubergren, no sea takimata sanctus est
27
+ Lorem ipsum dolor sit amet.
28
+ - And this is the next item. The previous item needs to be on one
29
+ line to keep =textile= happy.
30
+ - Ditto the previous line, actually.
31
+
32
+ ** Edge cases
33
+
34
+ - This is a single-line list.
35
+ And this is a *separate paragraph.* Note the indentation in the org
36
+ file.
@@ -0,0 +1,30 @@
1
+ * Metadata, etc.
2
+
3
+ I normally filter out things that look like metadata. Can't do it any
4
+ more. I need to see all of the following:
5
+
6
+ #+BEGIN_EXAMPLE
7
+ * DONE Handle inline formatting
8
+ CLOSED: [2009-12-26 Sat 21:41]
9
+ :PROPERTIES:
10
+ :ARCHIVE_TIME: 2009-12-26 Sat 22:16
11
+ :ARCHIVE_FILE: ~/brians-brain/content/projects/orgmode_parser.org
12
+ :ARCHIVE_OLPATH: <%= @page.title %>/Future Development
13
+ :ARCHIVE_CATEGORY: orgmode_parser
14
+ :ARCHIVE_TODO: DONE
15
+ :END:
16
+
17
+ I still need to handle:
18
+
19
+ - [ ] =Inline code=
20
+
21
+ How does the =emacs= HTML parser handle *inline* formatting? Ah,
22
+ it looks like it defines everything in =org-emphasis-alist= (line
23
+ 2855 of =org.el=).
24
+
25
+ And then look at =org-emphasis-regexp-components=, line 2828 of
26
+ =org.el=. It looks like they just use a crazy regexp for inline
27
+ formatting. Which is good, because it means I can copy!
28
+
29
+
30
+ #+END_EXAMPLE
@@ -1,5 +1,5 @@
1
- <ul>
2
- <li>This file has only a list</li>
3
- <li>Note it will end with nothing other than a list item.</li>
4
- <li>the world wants to know: Will org-ruby write the closing ul tag?</li>
5
- </ul>
1
+ <ul>
2
+ <li>This file has only a list</li>
3
+ <li>Note it will end with nothing other than a list item.</li>
4
+ <li>the world wants to know: Will org-ruby write the closing ul tag?</li>
5
+ </ul>
@@ -1,3 +1,3 @@
1
- - This file has only a list
2
- - Note it will end with nothing other than a list item.
3
- - the world wants to know: Will org-ruby write the closing ul tag?
1
+ - This file has only a list
2
+ - Note it will end with nothing other than a list item.
3
+ - the world wants to know: Will org-ruby write the closing ul tag?
@@ -1,6 +1,6 @@
1
- <table>
2
- <tr><td>One</td><td>Two</td><td>Three</td><td>Four</td></tr>
3
- <tr><td>Five</td><td>Six</td><td>Seven</td><td>Eight</td></tr>
4
- <tr><td>Nine</td><td>Ten</td><td>Eleven</td><td>Twelve</td></tr>
5
- <tr><td><b>format</b></td><td><i>text</i></td><td><code>in</code></td><td><span style="text-decoration:underline;">cells</span></td></tr>
6
- </table>
1
+ <table>
2
+ <tr><td>One</td><td>Two</td><td>Three</td><td>Four</td></tr>
3
+ <tr><td>Five</td><td>Six</td><td>Seven</td><td>Eight</td></tr>
4
+ <tr><td>Nine</td><td>Ten</td><td>Eleven</td><td>Twelve</td></tr>
5
+ <tr><td><b>format</b></td><td><i>text</i></td><td><code>in</code></td><td><span style="text-decoration:underline;">cells</span></td></tr>
6
+ </table>
@@ -1,5 +1,5 @@
1
- | One | Two | Three | Four |
2
- |----------+--------+--------+---------|
3
- | Five | Six | Seven | Eight |
4
- | Nine | Ten | Eleven | Twelve |
5
- | *format* | /text/ | ~in~ | _cells_ |
1
+ | One | Two | Three | Four |
2
+ |----------+--------+--------+---------|
3
+ | Five | Six | Seven | Eight |
4
+ | Nine | Ten | Eleven | Twelve |
5
+ | *format* | /text/ | ~in~ | _cells_ |
@@ -1,20 +1,20 @@
1
- <p class="title">TABLES</p>
2
- <p>Different types of ORG tables.</p>
3
- <h1>Simple table, no header.</h1>
4
- <table>
5
- <tr><td>Cell one</td><td>Cell two</td></tr>
6
- <tr><td>Cell three</td><td>Cell four</td></tr>
7
- </table>
8
- <h1>Indented table</h1>
9
- <table>
10
- <tr><td>Cell one</td></tr>
11
- <tr><td>Cell two</td></tr>
12
- </table>
13
- <p>And here&#8217;s some paragraph content. The line breaks will need to get removed here, but not for the tables.</p>
14
- <h1>Table with header</h1>
15
- <table>
16
- <tr><td>One</td><td>Two</td><td>Three</td></tr>
17
- <tr><td>Four</td><td>Five</td><td>Six</td></tr>
18
- <tr><td>Seven</td><td>Eight</td><td>Nine</td></tr>
19
- </table>
20
- <p>The separator row should not get printed out.</p>
1
+ <p class="title">TABLES</p>
2
+ <p>Different types of ORG tables.</p>
3
+ <h1>Simple table, no header.</h1>
4
+ <table>
5
+ <tr><td>Cell one</td><td>Cell two</td></tr>
6
+ <tr><td>Cell three</td><td>Cell four</td></tr>
7
+ </table>
8
+ <h1>Indented table</h1>
9
+ <table>
10
+ <tr><td>Cell one</td></tr>
11
+ <tr><td>Cell two</td></tr>
12
+ </table>
13
+ <p>And here&#8217;s some paragraph content. The line breaks will need to get removed here, but not for the tables.</p>
14
+ <h1>Table with header</h1>
15
+ <table>
16
+ <tr><td>One</td><td>Two</td><td>Three</td></tr>
17
+ <tr><td>Four</td><td>Five</td><td>Six</td></tr>
18
+ <tr><td>Seven</td><td>Eight</td><td>Nine</td></tr>
19
+ </table>
20
+ <p>The separator row should not get printed out.</p>
@@ -1,26 +1,26 @@
1
- TABLES
2
-
3
- Different types of ORG tables.
4
-
5
- * Simple table, no header.
6
-
7
- | Cell one | Cell two |
8
- | Cell three | Cell four |
9
-
10
-
11
- * Indented table
12
-
13
- | Cell one |
14
- | Cell two |
15
-
16
- And here's some paragraph content. The line breaks will need to get
17
- removed here, but not for the tables.
18
-
19
- * Table with header
20
-
21
- | One | Two | Three |
22
- |-------+-------+-------|
23
- | Four | Five | Six |
24
- | Seven | Eight | Nine |
25
-
26
- The separator row should not get printed out.
1
+ TABLES
2
+
3
+ Different types of ORG tables.
4
+
5
+ * Simple table, no header.
6
+
7
+ | Cell one | Cell two |
8
+ | Cell three | Cell four |
9
+
10
+
11
+ * Indented table
12
+
13
+ | Cell one |
14
+ | Cell two |
15
+
16
+ And here's some paragraph content. The line breaks will need to get
17
+ removed here, but not for the tables.
18
+
19
+ * Table with header
20
+
21
+ | One | Two | Three |
22
+ |-------+-------+-------|
23
+ | Four | Five | Six |
24
+ | Seven | Eight | Nine |
25
+
26
+ The separator row should not get printed out.