Skip to content

Commit

Permalink
Remove leading space characters in YAML frontmatter
Browse files Browse the repository at this point in the history
Remove leading space characters so directly loading the frontmatter text
with `yaml.safe_load` doesn't throw an exception.
  • Loading branch information
anba committed Dec 17, 2024
1 parent b67484f commit 9558fd3
Show file tree
Hide file tree
Showing 53 changed files with 281 additions and 281 deletions.
12 changes: 6 additions & 6 deletions test/annexB/built-ins/String/prototype/anchor/B.2.3.2.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
// http://mathias.html5.org/tests/javascript/string/

/*---
description: >
String.prototype.anchor returns a string of HTML describing a single HTML
anchor element. The element's content is the `this` value of the function
invocation, coerced to a string. If specified, the first argument will be
coerced to a string, escaped, and set as the element's `name` attribute.
es6id: B.2.3.2
description: >
String.prototype.anchor returns a string of HTML describing a single HTML
anchor element. The element's content is the `this` value of the function
invocation, coerced to a string. If specified, the first argument will be
coerced to a string, escaped, and set as the element's `name` attribute.
es6id: B.2.3.2
---*/

assert.sameValue('_'.anchor('b'), '<a name="b">_</a>');
Expand Down
10 changes: 5 additions & 5 deletions test/annexB/built-ins/String/prototype/big/B.2.3.3.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
// http://mathias.html5.org/tests/javascript/string/

/*---
description: >
String.prototype.big returns a string of HTML describing a single HTML
big element. The element's content is the `this` value of the function
invocation, coerced to a string.
es6id: B.2.3.3
description: >
String.prototype.big returns a string of HTML describing a single HTML
big element. The element's content is the `this` value of the function
invocation, coerced to a string.
es6id: B.2.3.3
---*/

assert.sameValue('_'.big(), '<big>_</big>');
Expand Down
10 changes: 5 additions & 5 deletions test/annexB/built-ins/String/prototype/blink/B.2.3.4.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
// http://mathias.html5.org/tests/javascript/string/

/*---
description: >
String.prototype.blink returns a string of HTML describing a single HTML
blink element. The element's content is the `this` value of the function
invocation, coerced to a string.
es6id: B.2.3.4
description: >
String.prototype.blink returns a string of HTML describing a single HTML
blink element. The element's content is the `this` value of the function
invocation, coerced to a string.
es6id: B.2.3.4
---*/

assert.sameValue('_'.blink(), '<blink>_</blink>');
Expand Down
10 changes: 5 additions & 5 deletions test/annexB/built-ins/String/prototype/bold/B.2.3.5.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
// http://mathias.html5.org/tests/javascript/string/

/*---
description: >
String.prototype.bold returns a string of HTML describing a single HTML
bold element. The element's content is the `this` value of the function
invocation, coerced to a string.
es6id: B.2.3.5
description: >
String.prototype.bold returns a string of HTML describing a single HTML
bold element. The element's content is the `this` value of the function
invocation, coerced to a string.
es6id: B.2.3.5
---*/

assert.sameValue('_'.bold(), '<b>_</b>');
Expand Down
10 changes: 5 additions & 5 deletions test/annexB/built-ins/String/prototype/fixed/B.2.3.6.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
// http://mathias.html5.org/tests/javascript/string/

/*---
description: >
String.prototype.fixed returns a string of HTML describing a single HTML
teletype text element. The element's content is the `this` value of the
function invocation, coerced to a string.
es6id: B.2.3.6
description: >
String.prototype.fixed returns a string of HTML describing a single HTML
teletype text element. The element's content is the `this` value of the
function invocation, coerced to a string.
es6id: B.2.3.6
---*/

assert.sameValue('_'.fixed(), '<tt>_</tt>');
Expand Down
14 changes: 7 additions & 7 deletions test/annexB/built-ins/String/prototype/fontcolor/B.2.3.7.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
// http://mathias.html5.org/tests/javascript/string/

/*---
description: >
String.prototype.fontcolor returns a string of HTML describing a single
HTML font element. The element's content is the `this` value of the
function invocation, coerced to a string. If specified, the first argument
will be coerced to a string, escaped, and set as the element's `color`
attribute.
es6id: B.2.3.7
description: >
String.prototype.fontcolor returns a string of HTML describing a single
HTML font element. The element's content is the `this` value of the
function invocation, coerced to a string. If specified, the first argument
will be coerced to a string, escaped, and set as the element's `color`
attribute.
es6id: B.2.3.7
---*/

assert.sameValue('_'.fontcolor('b'), '<font color="b">_</font>');
Expand Down
14 changes: 7 additions & 7 deletions test/annexB/built-ins/String/prototype/fontsize/B.2.3.8.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
// http://mathias.html5.org/tests/javascript/string/

/*---
description: >
String.prototype.fontsize returns a string of HTML describing a single
HTML font element. The element's content is the `this` value of the
function invocation, coerced to a string. If specified, the first argument
will be coerced to a string, escaped, and set as the element's `size`
attribute.
es6id: B.2.3.8
description: >
String.prototype.fontsize returns a string of HTML describing a single
HTML font element. The element's content is the `this` value of the
function invocation, coerced to a string. If specified, the first argument
will be coerced to a string, escaped, and set as the element's `size`
attribute.
es6id: B.2.3.8
---*/

assert.sameValue('_'.fontsize('b'), '<font size="b">_</font>');
Expand Down
10 changes: 5 additions & 5 deletions test/annexB/built-ins/String/prototype/italics/B.2.3.9.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
// http://mathias.html5.org/tests/javascript/string/

/*---
description: >
String.prototype.italics returns a string of HTML describing a single HTML
italic element. The element's content is the `this` value of the function
invocation, coerced to a string.
es6id: B.2.3.9
description: >
String.prototype.italics returns a string of HTML describing a single HTML
italic element. The element's content is the `this` value of the function
invocation, coerced to a string.
es6id: B.2.3.9
---*/

assert.sameValue('_'.italics(), '<i>_</i>');
Expand Down
12 changes: 6 additions & 6 deletions test/annexB/built-ins/String/prototype/link/B.2.3.10.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
// http://mathias.html5.org/tests/javascript/string/

/*---
description: >
String.prototype.link returns a string of HTML describing a single HTML
link element. The element's content is the `this` value of the function
invocation, coerced to a string. If specified, the first argument will be
coerced to a string, escaped, and set as the element's `href` attribute.
es6id: B.2.3.10
description: >
String.prototype.link returns a string of HTML describing a single HTML
link element. The element's content is the `this` value of the function
invocation, coerced to a string. If specified, the first argument will be
coerced to a string, escaped, and set as the element's `href` attribute.
es6id: B.2.3.10
---*/

assert.sameValue('_'.link('b'), '<a href="b">_</a>');
Expand Down
10 changes: 5 additions & 5 deletions test/annexB/built-ins/String/prototype/small/B.2.3.11.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
// http://mathias.html5.org/tests/javascript/string/

/*---
description: >
String.prototype.small returns a string of HTML describing a single HTML
small print element. The element's content is the `this` value of the
function invocation, coerced to a string.
es6id: B.2.3.11
description: >
String.prototype.small returns a string of HTML describing a single HTML
small print element. The element's content is the `this` value of the
function invocation, coerced to a string.
es6id: B.2.3.11
---*/

assert.sameValue('_'.small(), '<small>_</small>');
Expand Down
10 changes: 5 additions & 5 deletions test/annexB/built-ins/String/prototype/strike/B.2.3.12.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
// http://mathias.html5.org/tests/javascript/string/

/*---
description: >
String.prototype.strike returns a string of HTML describing a single HTML
strikethrough element. The element's content is the `this` value of the
function invocation, coerced to a string.
es6id: B.2.3.12
description: >
String.prototype.strike returns a string of HTML describing a single HTML
strikethrough element. The element's content is the `this` value of the
function invocation, coerced to a string.
es6id: B.2.3.12
---*/

assert.sameValue('_'.strike(), '<strike>_</strike>');
Expand Down
10 changes: 5 additions & 5 deletions test/annexB/built-ins/String/prototype/sub/B.2.3.13.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
// http://mathias.html5.org/tests/javascript/string/

/*---
description: >
String.prototype.sub returns a string of HTML describing a single HTML
subscript element. The element's content is the `this` value of the
function invocation, coerced to a string.
es6id: B.2.3.13
description: >
String.prototype.sub returns a string of HTML describing a single HTML
subscript element. The element's content is the `this` value of the
function invocation, coerced to a string.
es6id: B.2.3.13
---*/

assert.sameValue('_'.sub(), '<sub>_</sub>');
Expand Down
10 changes: 5 additions & 5 deletions test/annexB/built-ins/String/prototype/sup/B.2.3.14.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
// http://mathias.html5.org/tests/javascript/string/

/*---
description: >
String.prototype.sup returns a string of HTML describing a single HTML
superscript element. The element's content is the `this` value of the
function invocation, coerced to a string.
es6id: B.2.3.14
description: >
String.prototype.sup returns a string of HTML describing a single HTML
superscript element. The element's content is the `this` value of the
function invocation, coerced to a string.
es6id: B.2.3.14
---*/

assert.sameValue('_'.sup(), '<sup>_</sup>');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
// This code is governed by the BSD license found in the LICENSE file.

/*---
description: >
Generators declared with GeneratorMethod syntax do not require a
`yield` expression.
features: [generators]
es6id: 14.4
description: >
Generators declared with GeneratorMethod syntax do not require a
`yield` expression.
features: [generators]
es6id: 14.4
---*/

var result;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
// This code is governed by the BSD license found in the LICENSE file.

/*---
description: >
`return` is a valid statement within generator function bodies.
features: [generators]
es6id: 14.4
description: >
`return` is a valid statement within generator function bodies.
features: [generators]
es6id: 14.4
---*/

var result;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
// This code is governed by the BSD license found in the LICENSE file.

/*---
description: >
`yield` is a valid expression within generator function bodies.
features: [generators]
es6id: 14.4
description: >
`yield` is a valid expression within generator function bodies.
features: [generators]
es6id: 14.4
---*/

var iter, result;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
// This code is governed by the BSD license found in the LICENSE file.

/*---
description: >
`yield` is a valid expression within generator function bodies.
features: [generators]
es6id: 14.4
description: >
`yield` is a valid expression within generator function bodies.
features: [generators]
es6id: 14.4
---*/

var iter, result;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
// This code is governed by the BSD license found in the LICENSE file.

/*---
description: >
`yield` may be used as the binding identifier of a function expression
within generator bodies.
features: [generators]
es6id: 14.1
flags: [noStrict]
description: >
`yield` may be used as the binding identifier of a function expression
within generator bodies.
features: [generators]
es6id: 14.1
flags: [noStrict]
---*/

var result;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
// This code is governed by the BSD license found in the LICENSE file.

/*---
description: >
`yield` is a valid BindingIdentifier for GeneratorMethods
features: [generators]
es6id: 12.1.1
description: >
`yield` is a valid BindingIdentifier for GeneratorMethods
features: [generators]
es6id: 12.1.1
---*/

var iter, result;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
// This code is governed by the BSD license found in the LICENSE file.

/*---
description: >
`yield` is not a reserved keyword within normal function bodies declared
within generator function bodies.
features: [generators]
es6id: 12.1.1
flags: [noStrict]
description: >
`yield` is not a reserved keyword within normal function bodies declared
within generator function bodies.
features: [generators]
es6id: 12.1.1
flags: [noStrict]
---*/

var result;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
// This code is governed by the BSD license found in the LICENSE file.

/*---
description: >
`yield` may be used as a literal property name in an object literal
within generator function bodies.
features: [generators]
es6id: 12.1.1
description: >
`yield` may be used as a literal property name in an object literal
within generator function bodies.
features: [generators]
es6id: 12.1.1
---*/

var result;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
// This code is governed by the BSD license found in the LICENSE file.

/*---
description: >
`yield` expressions are not LogicalOrExpressions.
features: [generators]
es6id: 12.1.1
negative:
phase: parse
type: SyntaxError
description: >
`yield` expressions are not LogicalOrExpressions.
features: [generators]
es6id: 12.1.1
negative:
phase: parse
type: SyntaxError
---*/

$DONOTEVALUATE();
Expand Down
Loading

0 comments on commit 9558fd3

Please sign in to comment.