[DRE-commits] [ruby-org] 265/303: Update test about definition lists support for HTML output

Jérémy Bobbio lunar at alioth.debian.org
Fri Aug 9 17:34:10 UTC 2013


This is an automated email from the git hooks/post-receive script.

lunar pushed a commit to branch master
in repository ruby-org.

commit 05a6a38d5a3d9661fd0fbe5f6e64f5d44ffa0b09
Author: Waldemar Quevedo <waldemar.quevedo at gmail.com>
Date:   Sun Feb 3 19:03:27 2013 +0900

    Update test about definition lists support for HTML output
---
 spec/html_examples/deflist.html |   65 +++++++++++++++++++++++++++++++++++++++
 spec/html_examples/deflist.org  |   48 +++++++++++++++++++++++++++++
 2 files changed, 113 insertions(+)

diff --git a/spec/html_examples/deflist.html b/spec/html_examples/deflist.html
index c68df35..cd05ef2 100644
--- a/spec/html_examples/deflist.html
+++ b/spec/html_examples/deflist.html
@@ -10,3 +10,68 @@
   <dt>Two</dt><dd>The second number.</dd>
   <dt>Three</dt><dd>The second number.</dd>
 </dl>
+<h1>Corner cases of definition lists</h1>
+<p>The following examples show how org-ruby behave
+  when handling some cases of definition lists.
+  (Many thanks to <a href="https://github.com/vonavi">vonavi</a> for his contributions here)</p>
+<h2>Definition List Items</h2>
+<ul>
+  <li>Regular list
+    <dl>
+      <dt>Key</dt><dd>Value (k1)</dd>
+      <dt>Key</dt><dd>Value (k2)</dd>
+      <dt>Key</dt><dd>Value (k3)</dd>
+    </dl>
+  </li>
+  <li>Semicolon as part of key
+    <dl>
+      <dt>K::e::y</dt><dd>Value (k1)</dd>
+      <dt>K::e::y</dt><dd>Value (k2)</dd>
+    </dl>
+  </li>
+  <li>Paragraph break after key
+    <dl>
+      <dt>Key</dt><dd>
+        Value (k1)</dd>
+      <dt>Key</dt><dd>
+        Value (k2)</dd>
+    </dl>
+  </li>
+  <li>Many semicolons in same line
+    <dl>
+      <dt>Key :: Value</dt><dd>Still value (k1)</dd>
+      <dt>Key :: Value</dt><dd>Still value (k2)</dd>
+    </dl>
+  </li>
+  <li>Semicolon placement cases
+    <ul>
+      <li>Case 1
+        <dl>
+          <dt>Key ::MoreKey</dt><dd>Value (k1)</dd>
+        </dl>
+      </li>
+      <li>Case 2
+        <dl>
+          <dt>Key:: MoreKey</dt><dd>Value (k2)</dd>
+        </dl>
+      </li>
+      <li>Case 3
+        <dl>
+          <dt>:: Key</dt><dd>Value (k3)</dd>
+        </dl>
+      </li>
+    </ul>
+  </li>
+</ul>
+<h2>Not Definition List Items</h2>
+<p>The following cases will not be considered as definition lists
+  but just regular lists.</p>
+<ul>
+  <li>Key:: Value (n1)</li>
+  <li>Key ::Value (n2)</li>
+  <li>Key::Value (n3)</li>
+  <li>Key::
+    Value (n4)</li>
+  <li>Key
+    :: Value (n5)</li>
+</ul>
diff --git a/spec/html_examples/deflist.org b/spec/html_examples/deflist.org
index 5ca4113..841aaf8 100644
--- a/spec/html_examples/deflist.org
+++ b/spec/html_examples/deflist.org
@@ -10,3 +10,51 @@ Text
  * One :: The first number.
  * Two :: The second number.
  * Three :: The second number.
+
+* Corner cases of definition lists
+
+The following examples show how org-ruby behave
+when handling some cases of definition lists.
+(Many thanks to [[https://github.com/vonavi][vonavi]] for his contributions here)
+
+** Definition List Items
+
+- Regular list
+ + Key :: Value (k1)
+ + Key :: Value (k2)
+ + Key :: Value (k3)
+
+- Semicolon as part of key
+ - K::e::y :: Value (k1)
+ - K::e::y :: Value (k2)
+
+- Paragraph break after key
+ + Key ::
+   Value (k1)
+ + Key ::
+   Value (k2)
+
+- Many semicolons in same line
+ + Key :: Value :: Still value (k1)
+ + Key :: Value :: Still value (k2)
+
+- Semicolon placement cases
+ + Case 1
+  * Key ::MoreKey :: Value (k1)
+ + Case 2
+  * Key:: MoreKey :: Value (k2)
+ + Case 3
+  * :: Key :: Value (k3)
+
+** Not Definition List Items
+
+The following cases will not be considered as definition lists
+but just regular lists.
+
+ - Key:: Value (n1)
+ - Key ::Value (n2)
+ - Key::Value (n3)
+ - Key::
+   Value (n4)
+ - Key
+   :: Value (n5)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-org.git



More information about the Pkg-ruby-extras-commits mailing list