1. Stephen Tanner
  2. gulp-butt

Commits

Stephen Tanner  committed ea1f905

Clean up examples.

  • Participants
  • Parent commits 5a68c63
  • Branches default

Comments (0)

Files changed (2)

File example.rst

View file
 
 
 
-Line Blocks
------------
 
-| This is a line block.  It ends with a blank line.
-|     Each new line begins with a vertical bar ("|").
-|     Line breaks and initial indents are preserved.
-| Continuation lines are wrapped portions of long lines;
-  they begin with a space in place of the vertical bar.
-|     The left edge of a continuation line need not be aligned with
-  the left edge of the text above it.
-
-| This is a second line block.
-|
-| Blank lines are permitted internally, but they must begin with a "|".
-
-Take it away, Eric the Orchestra Leader!
-
-    | A one, two, a one two three four
-    |
-    | Half a bee, philosophically,
-    |     must, *ipso facto*, half not be.
-    | But half the bee has got to be,
-    |     *vis a vis* its entity.  D'you see?
-    |
-    | But can a bee be said to be
-    |     or not to be an entire bee,
-    |         when half the bee is not a bee,
-    |             due to some ancient injury?
-    |
-    | Singing...
 
 Block Quotes
 ------------
 
     -- Anne Elk (Miss)
 
-Doctest Blocks
---------------
-
->>> print 'Python-specific usage examples; begun with ">>>"'
-Python-specific usage examples; begun with ">>>"
->>> print '(cut and pasted from interactive Python sessions)'
-(cut and pasted from interactive Python sessions)
 
 Tables
 ------
 
-Here's a grid table followed by a simple table:
-
-+------------------------+------------+----------+----------+
-| Header row, column 1   | Header 2   | Header 3 | Header 4 |
-| (header rows optional) |            |          |          |
-+========================+============+==========+==========+
-| body row 1, column 1   | column 2   | column 3 | column 4 |
-+------------------------+------------+----------+----------+
-| body row 2             | Cells may span columns.          |
-+------------------------+------------+---------------------+
-| body row 3             | Cells may  | - Table cells       |
-+------------------------+ span rows. | - contain           |
-| body row 4             |            | - body elements.    |
-+------------------------+------------+----------+----------+
-| body row 5             | Cells may also be     |          |
-|                        | empty: ``-->``        |          |
-+------------------------+-----------------------+----------+
 
 =====  =====  ======
-   Inputs     Output
-------------  ------
   A      B    A or B
 =====  =====  ======
 False  False  False
 
 Footnotes
 ---------
+Everything here will show up in the footnots section after rendered
 
 .. [1] A footnote contains body elements, consistently indented by at
    least 3 spaces.

File gulp-butt.js

View file
             return cb();
         }
 
-        file_str = file.contents.toString("ascii");
+        file_str = file.contents.toString();
 
         mod_contents = file_str.replace(new RegExp("cloud(s?)", "g"), "butt$1");
         mod_contents = mod_contents.replace(new RegExp("Cloud(s?)", "g"), "Butt$1");
 
         // console.log(mod_contents)
 
-        mod_file = new Buffer(mod_contents, "ascii");
+        mod_file = new Buffer(mod_contents);
         file.contents = mod_file;
 
         this.push(file);