[DRE-commits] [ruby-org] 229/303: Add test for code-blocks inside of lists
Jérémy Bobbio
lunar at alioth.debian.org
Fri Aug 9 17:34:03 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 a0da860a87773b2cb5a637de1a90ddeba1c28686
Author: Waldemar Quevedo <waldemar.quevedo at gmail.com>
Date: Mon Jan 14 10:50:39 2013 +0900
Add test for code-blocks inside of lists
---
spec/html_examples/code-block-lists.html | 72 ++++++++++++++++++++++++++++++
spec/html_examples/code-block-lists.org | 50 +++++++++++++++++++++
2 files changed, 122 insertions(+)
diff --git a/spec/html_examples/code-block-lists.html b/spec/html_examples/code-block-lists.html
new file mode 100644
index 0000000..72d3d01
--- /dev/null
+++ b/spec/html_examples/code-block-lists.html
@@ -0,0 +1,72 @@
+<h1 class="title">Code blocks in lists</h1>
+<h2>No spaces in code block</h2>
+<pre class="example">
+- List starts
+ + Block without indentation
+ #+begin_example
+puts "test"
+ #+end_example
+- List continues here
+ + and finished here
+</pre>
+<ul>
+ <li>List starts
+ <ul>
+ <li>Block without indentation
+ <pre class="example">
+puts "test"
+ </pre>
+ </li>
+ <ul>
+ </li>
+ <li>List continues here
+ <ul>
+ <li>and finished here
+ </li>
+ </ul>
+ </li>
+ </ul>
+ </ul>
+</ul>
+<h2>Code block indented</h2>
+<pre class="example">
+- List starts
+ + Block without indentation
+ #+begin_example ruby
+ puts "test"
+ #+end_example
+- List continues here
+ + and finished here
+</pre>
+<ul>
+ <li>List starts
+ <ul>
+ <li>Block without indentation
+ <pre class="example">
+ puts "test"
+ </pre>
+ </li>
+ </ul>
+ </li>
+ <li>List continues here
+ <ul>
+ <li>and finished here
+ </li>
+ </ul>
+ </li>
+</ul>
+<h2>Indentation level in example block</h2>
+<pre class="example">
+- Indentation of a begin_example code block
+ #+begin_example
+ (+ 3 5)
+ #+end_example
+
+</pre>
+<ul>
+ <li>Indentation of a begin_example code block
+ <pre class="example">
+ (+ 3 5)
+ </pre>
+ </li>
+</ul>
diff --git a/spec/html_examples/code-block-lists.org b/spec/html_examples/code-block-lists.org
new file mode 100644
index 0000000..b329b8b
--- /dev/null
+++ b/spec/html_examples/code-block-lists.org
@@ -0,0 +1,50 @@
+* Code blocks in lists
+** No spaces in code block
+
+: - List starts
+: + Block without indentation
+: #+begin_example
+: puts "test"
+: #+end_example
+: - List continues here
+: + and finished here
+
+- List starts
+ + Block without indentation
+ #+begin_example
+puts "test"
+ #+end_example
+- List continues here
+ + and finished here
+
+** Code block indented
+
+: - List starts
+: + Block without indentation
+: #+begin_example ruby
+: puts "test"
+: #+end_example
+: - List continues here
+: + and finished here
+
+- List starts
+ + Block without indentation
+ #+begin_example
+ puts "test"
+ #+end_example
+- List continues here
+ + and finished here
+
+** Indentation level in example block
+
+: - Indentation of a begin_example code block
+: #+begin_example
+: (+ 3 5)
+: #+end_example
+:
+
+- Indentation of a begin_example code block
+ #+begin_example
+ (+ 3 5)
+ #+end_example
+
--
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