grunt-literate
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -50,3 +50,3 @@ "use strict"; | ||
// block comment starting with /** | ||
var value = comment.value.slice(1).replace(whitespaceRe, ""); | ||
var value = comment.value.slice(1); | ||
@@ -57,2 +57,11 @@ var lines = value.split(/\n/); | ||
// Drop empty lines at the beginning of the literate comment | ||
while (true) { | ||
if (lines[0] !== undefined && isWhitespace(lines[0])) { | ||
lines.shift(); | ||
} else { | ||
break; | ||
} | ||
} | ||
// unindent lines | ||
@@ -59,0 +68,0 @@ lines = lines.map(function (line) { |
{ | ||
"name": "grunt-literate", | ||
"description": "Generate docs from your source", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"homepage": "https://github.com/phadej/grunt-literate", | ||
@@ -6,0 +6,0 @@ "author": { |
@@ -53,2 +53,3 @@ # grunt-literate | ||
- 0.1.1 Fix issue with unindenting | ||
- 0.1.0 Initial release | ||
@@ -55,0 +56,0 @@ |
@@ -65,2 +65,3 @@ | ||
- 0.1.1 Fix issue with unindenting | ||
- 0.1.0 Initial release | ||
@@ -88,3 +89,3 @@ | ||
var content = ""; | ||
f.src.forEach(function (filename) { | ||
@@ -91,0 +92,0 @@ content += literate(grunt.file.read(filename), options); |
@@ -64,2 +64,3 @@ //foobar | ||
- 0.1.1 Fix issue with unindenting | ||
- 0.1.0 Initial release | ||
@@ -66,0 +67,0 @@ |
12251
248
60