grunt-literate
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -76,3 +76,4 @@ "use strict"; | ||
content += lines.join("\n"); | ||
// Each line should have newline char after, also the last | ||
content += lines.join("\n") + "\n"; | ||
} else if (code) { | ||
@@ -92,2 +93,5 @@ // Code | ||
// Just one newline at eof | ||
content = content.replace(/\n+$/, "\n"); | ||
return content; | ||
@@ -94,0 +98,0 @@ } |
{ | ||
"name": "grunt-literate", | ||
"description": "Generate docs from your source", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"homepage": "https://github.com/phadej/grunt-literate", | ||
@@ -6,0 +6,0 @@ "author": { |
@@ -53,2 +53,5 @@ # grunt-literate | ||
- 0.1.2 Newline improvements | ||
- Newline at the end of comment | ||
- Only one newline at the end of generated file | ||
- 0.1.1 Fix issue with unindenting | ||
@@ -60,2 +63,3 @@ - 0.1.0 Initial release | ||
This task could be abused to do literate programming. | ||
[Docco](http://jashkenas.github.io/docco/) is similar tool, | ||
however *literate* is markup-language-agnostic. |
```js | ||
//foobar | ||
// vim: set sts=2 sw=2 ts=2 et: | ||
/* | ||
@@ -65,2 +65,5 @@ * grunt-literate | ||
- 0.1.2 Newline improvements | ||
- Newline at the end of comment | ||
- Only one newline at the end of generated file | ||
- 0.1.1 Fix issue with unindenting | ||
@@ -72,2 +75,4 @@ - 0.1.0 Initial release | ||
This task could be abused to do literate programming. | ||
[Docco](http://jashkenas.github.io/docco/) is similar tool, | ||
however *literate* is markup-language-agnostic. | ||
@@ -101,2 +106,1 @@ | ||
``` | ||
@@ -1,2 +0,2 @@ | ||
//foobar | ||
// vim: set sts=2 sw=2 ts=2 et: | ||
/* | ||
@@ -64,2 +64,5 @@ * grunt-literate | ||
- 0.1.2 Newline improvements | ||
- Newline at the end of comment | ||
- Only one newline at the end of generated file | ||
- 0.1.1 Fix issue with unindenting | ||
@@ -71,3 +74,4 @@ - 0.1.0 Initial release | ||
This task could be abused to do literate programming. | ||
[Docco](http://jashkenas.github.io/docco/) is similar tool, | ||
however *literate* is markup-language-agnostic. | ||
*/ | ||
@@ -74,0 +78,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
13099
256
64