summaryrefslogtreecommitdiffstats
path: root/packages/gitbook-asciidoc/lib/readme.js
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2015-02-12 09:45:19 +0100
committerSamy Pessé <samypesse@gmail.com>2016-12-22 11:46:19 +0100
commitbdefd1ed4ec3557e5699a7413cadd572badb9fd2 (patch)
treec77211a9b1be77c57c3ca3ece01e7b23e265adb6 /packages/gitbook-asciidoc/lib/readme.js
parentb820c745277849d44035011d956ab4c28be93fc5 (diff)
downloadgitbook-bdefd1ed4ec3557e5699a7413cadd572badb9fd2.zip
gitbook-bdefd1ed4ec3557e5699a7413cadd572badb9fd2.tar.gz
gitbook-bdefd1ed4ec3557e5699a7413cadd572badb9fd2.tar.bz2
Convert tabs to spaces
Diffstat (limited to 'packages/gitbook-asciidoc/lib/readme.js')
-rwxr-xr-xpackages/gitbook-asciidoc/lib/readme.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/packages/gitbook-asciidoc/lib/readme.js b/packages/gitbook-asciidoc/lib/readme.js
index bdcd3d3..e8b73fa 100755
--- a/packages/gitbook-asciidoc/lib/readme.js
+++ b/packages/gitbook-asciidoc/lib/readme.js
@@ -4,13 +4,13 @@ var cheerio = require('cheerio');
var convert = require('./utils/convert');
function parseReadme(src) {
- var html = convert(src);
- var $ = cheerio.load(html);
+ var html = convert(src);
+ var $ = cheerio.load(html);
- return {
- title: $("h1:first-child").text().trim(),
- description: $("div.paragraph").first().text().trim()
- };
+ return {
+ title: $("h1:first-child").text().trim(),
+ description: $("div.paragraph").first().text().trim()
+ };
}