Skip to content

Commit 3cbb553

Browse files
committed
tools: disallow trailing whitespace for markdown
markdown had a dispensation because 2 or more trailing spaces triggers a new paragraph. There are no examples of that usage in Node, all trailing whitespace found were mistakes, and the dispensation is now removed. See: nodejs#9620 PR-URL: nodejs#9676 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Roman Reiss <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Gibson Fahnestock <[email protected]>
1 parent 13c4f44 commit 3cbb553

File tree

6 files changed

+8
-11
lines changed

6 files changed

+8
-11
lines changed

.editorconfig

-3
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@ insert_final_newline = true
99
[vcbuild.bat]
1010
end_of_line = crlf
1111

12-
[*.{md,markdown}]
13-
trim_trailing_whitespace = false
14-
1512
[{lib,src,test}/**.js]
1613
indent_style = space
1714
indent_size = 2

BUILDING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Prerequisites:
2020

2121
On OS X, you will also need:
2222
* [Xcode](https://developer.apple.com/xcode/download/)
23-
* You also need to install the `Command Line Tools` via Xcode. You can find
23+
* You also need to install the `Command Line Tools` via Xcode. You can find
2424
this under the menu `Xcode -> Preferences -> Downloads`
2525
* This step will install `gcc` and the related toolchain containing `make`
2626

benchmark/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ const bench = common.createBenchmark(main, {
326326
function main(conf) {
327327
const http = require('http');
328328
const len = conf.kb * 1024;
329-
const chunk = Buffer.alloc(len, 'x');
329+
const chunk = Buffer.alloc(len, 'x');
330330
const server = http.createServer(function(req, res) {
331331
res.end(chunk);
332332
});

doc/changelogs/CHANGELOG_V010.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
* [io.js](CHANGELOG_IOJS.md)
7171
* [Archive](CHANGELOG_ARCHIVE.md)
7272

73-
**Note:** Node.js v0.10 is covered by the
73+
**Note:** Node.js v0.10 is covered by the
7474
[Node.js Long Term Support Plan](https://github.com/nodejs/LTS) and
7575
will be maintained until October 2016.
7676

@@ -359,11 +359,11 @@ https://github.com/nodejs/node/commit/8d045a30e95602b443eb259a5021d33feb4df079
359359
* child_process: properly support optional args (cjihrig)
360360
* crypto: Disable autonegotiation for SSLv2/3 by default (Fedor Indutny,
361361
Timothy J Fontaine, Alexis Campailla)
362-
362+
363363
This is a behavior change, by default we will not allow the negotiation to
364364
SSLv2 or SSLv3. If you want this behavior, run Node.js with either
365365
`--enable-ssl2` or `--enable-ssl3` respectively.
366-
366+
367367
This does not change the behavior for users specifically requesting
368368
`SSLv2_method` or `SSLv3_method`. While this behavior is not advised, it is
369369
assumed you know what you're doing since you're specifically asking to use

doc/changelogs/CHANGELOG_V012.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
* [io.js](CHANGELOG_IOJS.md)
3838
* [Archive](CHANGELOG_ARCHIVE.md)
3939

40-
**Note:** Node.js v0.12 is covered by the
40+
**Note:** Node.js v0.12 is covered by the
4141
[Node.js Long Term Support Plan](https://github.com/nodejs/LTS) and
4242
will be maintained until December 31st, 2016.
4343

test/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ and `setInterval`).
146146
## Common module API
147147

148148
The common.js module is used by tests for consistency across repeated
149-
tasks. It has a number of helpful functions and properties to help with
149+
tasks. It has a number of helpful functions and properties to help with
150150
writing tests.
151151

152152
### allowGlobals(...whitelist)
@@ -177,7 +177,7 @@ Check if there is more than 1gb of total memory.
177177
* `name` [&lt;String>](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type)
178178
* `expected` [&lt;String>](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type) | [&lt;Array>](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array)
179179

180-
Tests whether `name` and `expected` are part of a raised warning.
180+
Tests whether `name` and `expected` are part of a raised warning.
181181

182182
### hasCrypto
183183
* return [&lt;Boolean>](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Boolean_type)

0 commit comments

Comments
 (0)