Permalink
Browse files

The rest of HTML examples corrected.

  • Loading branch information...
1 parent 2e96d42 commit 44d48ca267fbe381f03f81820bdd2b9306aaa1fd @vonavi committed Dec 19, 2012
Showing with 114 additions and 82 deletions.
  1. +92 −71 spec/html_examples/code-lists.html
  2. +14 −7 spec/html_examples/properties_drawer.html
  3. +8 −4 spec/html_examples/skip-table.html
@@ -1,123 +1,144 @@
-<h1 class="title">normal list should work</h1>
+<h1 class="title">normal list should work
+</h1>
<ul>
<li>one
text in the same line
- <p>This is a paragraph</p>
- <ul>
- <li>A sublist
+ <p>This is a paragraph
+ </p>
<ul>
- <li>Another sublist
- <p>Sublist paragraph</p>
+ <li>A sublist
+ <ul>
+ <li>Another sublist
+ <p>Sublist paragraph
+ </p>
+ </li>
+ </ul>
</li>
- </ul>
- </li>
- <li>2nd sublist
- <ul>
- <li>2nd sublist item
- <p>Paragraph from 2nd sublist</p>
+ <li>2nd sublist
+ <ul>
+ <li>2nd sublist item
+ <p>Paragraph from 2nd sublist
+ </p>
+ </li>
+ </ul>
</li>
</ul>
- </li>
- </ul>
</li>
<li>two
- <ol>
- <li>a new list
- <p>paragraph</p>
- </li>
- <li>another sublist
- </li>
- </ol>
+ <ol>
+ <li>a new list
+ <p>paragraph
+ </p>
+ </li>
+ <li>another sublist
+ </li>
+ </ol>
</li>
<li>final list
</li>
</ul>
-<h1>paragraphs in lists should work</h1>
+<h1>paragraphs in lists should work
+</h1>
<ul>
<li>Foo
- <ul>
- <li>How does this work?
- <p>uno dos tres</p>
- </li>
- <li>Should not this be a paragraph?
- </li>
- </ul>
+ <ul>
+ <li>How does this work?
+ <p>uno dos tres
+ </p>
+ </li>
+ <li>Should not this be a paragraph?
+ </li>
+ </ul>
</li>
<li>Bar
</li>
</ul>
-<h1>begin example in lists should work</h1>
+<h1>begin example in lists should work
+</h1>
<ul>
<li>Foo
- <pre class="example">
+ <pre class="example">
class Hello
def say
puts 'cheers'
end
end
- </pre>
+ </pre>
</li>
<li>Bar
- <pre class="example">
+ <pre class="example">
This gets lumped in to the above line "Example"
- </pre>
+ </pre>
</li>
<li>Hello
</li>
</ul>
-<h1>begin quote in lists should work</h1>
+<h1>begin quote in lists should work
+</h1>
<ul>
<li>Example
- <ul>
- <li>Uno
+ <ul>
+ <li>Uno
Lorem
- <blockquote>
- <p>A quote!!!</p>
- </blockquote>
- <p>dolor</p>
- </li>
- <li>Dos
- </li>
- </ul>
+ <blockquote>
+ <p>A quote!!!
+ </p>
+ </blockquote>
+ <p>dolor
+ </p>
+ </li>
+ <li>Dos
+ </li>
+ </ul>
</li>
</ul>
-<h1>tables in lists should work</h1>
+<h1>tables in lists should work
+</h1>
<ul>
<li>Example
- <ul>
- <li>Table
- <p>This table:</p>
- <table>
- <tr><td>a</td><td>b</td></tr>
- <tr><td>0</td><td>1</td></tr>
- <tr><td>1</td><td>2</td></tr>
- </table>
- </li>
- </ul>
+ <ul>
+ <li>Table
+ <p>This table:
+ </p>
+ <table>
+ <tr><td>a</td><td>b</td>
+ </tr>
+ <tr><td>0</td><td>1</td>
+ </tr>
+ <tr><td>1</td><td>2</td>
+ </tr>
+ </table>
+ </li>
+ </ul>
</li>
<li>After the table
- <p>The table should be above</p>
+ <p>The table should be above
+ </p>
</li>
</ul>
-<h1>definition lists should work</h1>
+<h1>definition lists should work
+</h1>
<ul>
<li>Example
- <dl>
- <dt>Hello</dt><dd>Hola
+ <dl>
+ <dt>Hello</dt><dd>Hola
Paragrap continues here</dd>
- <blockquote>
- <p>Cuando me desperte, el dinosaurio estaba alli.</p>
- </blockquote>
- <dt>Dog</dt><dd>Perro
+ <blockquote>
+ <p>Cuando me desperte, el dinosaurio estaba alli.
+ </p>
+ </blockquote>
+ <dt>Dog</dt><dd>Perro
Paragraph</dd>
- <li>Last sublist
- </li>
- </dl>
+ </dl>
+ <ul>
+ <li>Last sublist
+ </li>
+ </ul>
</li>
<li>Another list
- <ul>
- <li>with a sublist
- </li>
- </ul>
+ <ul>
+ <li>with a sublist
+ </li>
+ </ul>
</li>
</ul>
@@ -1,19 +1,26 @@
-<h1 class="title">The mount point of the fullest disk</h1>
-<h2>query all mounted disks</h2>
+<h1 class="title">The mount point of the fullest disk
+</h1>
+<h2>query all mounted disks
+</h2>
<pre class="example">
df \
</pre>
-<h2>strip the header row</h2>
+<h2>strip the header row
+</h2>
<pre class="example">
|sed '1d' \
</pre>
-<h2>sort by the percent full</h2>
+<h2>sort by the percent full
+</h2>
<pre class="example">
|awk '{print $5 " " $6}'|sort -n |tail -1 \
</pre>
-<h2>extract the mount point</h2>
+<h2>extract the mount point
+</h2>
<pre class="example">
|awk '{print $2}'
</pre>
-<h1>Properties drawer example</h1>
-<p>These properties are metadata so they should not be visible.</p>
+<h1>Properties drawer example
+</h1>
+<p>These properties are metadata so they should not be visible.
+</p>
@@ -1,5 +1,9 @@
-<p class="title">skip-table.org</p>
-<p>Checking that tables are skipped when directed.</p>
+<p class="title">skip-table.org
+</p>
+<p>Checking that tables are skipped when directed.
+</p>
<p>For grins, here&#8217;s another table without a header. Just keep the bases
-covered.</p>
-<p>Again, in the HTML output, you should see <b>no tables</b>.</p>
+covered.
+</p>
+<p>Again, in the HTML output, you should see <b>no tables</b>.
+</p>

0 comments on commit 44d48ca

Please sign in to comment.