[DRE-commits] [ruby-org] 160/303: Modify properties_drawer example to use begin_example

Jérémy Bobbio lunar at alioth.debian.org
Fri Aug 9 17:33:49 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 9212cfc5ac8305da7f6ce23e7c628d19c8e32908
Author: Waldemar Quevedo <waldemar.quevedo at gmail.com>
Date:   Sun Jul 8 00:19:24 2012 +0900

    Modify properties_drawer example to use begin_example
---
 spec/html_examples/properties_drawer.html |   20 +++++++-------------
 spec/html_examples/properties_drawer.org  |   16 ++++++++--------
 2 files changed, 15 insertions(+), 21 deletions(-)

diff --git a/spec/html_examples/properties_drawer.html b/spec/html_examples/properties_drawer.html
index 45a0c7b..c500381 100644
--- a/spec/html_examples/properties_drawer.html
+++ b/spec/html_examples/properties_drawer.html
@@ -1,25 +1,19 @@
 <h1 class="title">The mount point of the fullest disk</h1>
 <h2>query all mounted disks</h2>
-<pre class="src src-sh">
+<pre class="example">
   df \
 </pre>
 <h2>strip the header row</h2>
-<pre class="src src-sh">
-  <table>
-    <tr><td>sed '1d' \</tr>
-  </table>
+<pre class="example">
+  |sed '1d' \
 </pre>
 <h2>sort by the percent full</h2>
-<pre class="src src-sh">
-  <table>
-    <tr><td>awk '{print $5 " " $6}'</td><td>sort -n</td><td>tail -1 \</tr>
-  </table>
+<pre class="example">
+  |awk '{print $5 " " $6}'|sort -n |tail -1 \
 </pre>
 <h2>extract the mount point</h2>
-<pre class="src src-sh">
-  <table>
-    <tr><td>awk '{print $2}'</tr>
-  </table>
+<pre class="example">
+  |awk '{print $2}'
 </pre>
 <h1>Properties drawer example</h1>
 <p>These properties are metadata so they should not be visible.</p>
diff --git a/spec/html_examples/properties_drawer.org b/spec/html_examples/properties_drawer.org
index d267c61..7d67ed8 100644
--- a/spec/html_examples/properties_drawer.org
+++ b/spec/html_examples/properties_drawer.org
@@ -6,24 +6,24 @@
   :END:
 
 ** query all mounted disks
-#+BEGIN_SRC sh
+#+BEGIN_EXAMPLE
   df \
-#+END_SRC
+#+END_EXAMPLE
 
 ** strip the header row
-#+BEGIN_SRC sh
+#+BEGIN_EXAMPLE
   |sed '1d' \
-#+END_SRC
+#+END_EXAMPLE
 
 ** sort by the percent full
-#+BEGIN_SRC sh
+#+BEGIN_EXAMPLE
   |awk '{print $5 " " $6}'|sort -n |tail -1 \
-#+END_SRC
+#+END_EXAMPLE
 
 ** extract the mount point
-#+BEGIN_SRC sh
+#+BEGIN_EXAMPLE
   |awk '{print $2}'
-#+END_SRC
+#+END_EXAMPLE
 
 * Properties drawer example
    :PROPERTIES:

-- 
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