Remove leading space characters in YAML frontmatter

Remove leading space characters so directly loading the frontmatter text
with `yaml.safe_load` doesn't throw an exception.
This commit is contained in:
André Bargull 2024-12-17 15:07:18 +01:00 committed by Ms2ger
parent 9e915f9b3c
commit 98a7f03f5c
53 changed files with 281 additions and 281 deletions

View File

@ -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>');

View File

@ -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>');

View File

@ -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>');

View File

@ -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>');

View File

@ -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>');

View File

@ -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>');

View File

@ -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>');

View File

@ -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>');

View File

@ -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>');

View File

@ -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>');

View File

@ -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>');

View File

@ -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>');

View File

@ -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>');

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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();

View File

@ -2,14 +2,14 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
description: >
`yield` is a reserved keyword within generator function bodies and may
not be used as the binding identifier of a parameter.
features: [generators]
es6id: 12.1.1
negative:
phase: parse
type: SyntaxError
description: >
`yield` is a reserved keyword within generator function bodies and may
not be used as the binding identifier of a parameter.
features: [generators]
es6id: 12.1.1
negative:
phase: parse
type: SyntaxError
---*/
$DONOTEVALUATE();

View File

@ -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;

View File

@ -2,10 +2,10 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
description: >
`yield` is a valid statement within generator function bodies.
features: [generators]
es6id: 14.4
description: >
`yield` is a valid statement within generator function bodies.
features: [generators]
es6id: 14.4
---*/
var iter, result;

View File

@ -2,11 +2,11 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
description: >
`yield` expressions may be used as the right-hand-side of other `yield`
expressions.
features: [generators]
es6id: 14.4
description: >
`yield` expressions may be used as the right-hand-side of other `yield`
expressions.
features: [generators]
es6id: 14.4
---*/
var iter, result;

View File

@ -2,10 +2,10 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
description: >
Newlines terminate `yield` expressions.
features: [generators]
es6id: 14.4
description: >
Newlines terminate `yield` expressions.
features: [generators]
es6id: 14.4
---*/
var iter, result;

View File

@ -2,13 +2,13 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
description: >
A newline may not precede the `*` token in a `yield` expression.
features: [generators]
es6id: 14.4
negative:
phase: parse
type: SyntaxError
description: >
A newline may not precede the `*` token in a `yield` expression.
features: [generators]
es6id: 14.4
negative:
phase: parse
type: SyntaxError
---*/
$DONOTEVALUATE();

View File

@ -2,10 +2,10 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
description: >
The right-hand side of a `yield *` expression may appear on a new line.
features: [generators]
es6id: 14.4
description: >
The right-hand side of a `yield *` expression may appear on a new line.
features: [generators]
es6id: 14.4
---*/
var result;

View File

@ -2,13 +2,13 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
description: >
`yield` expressions bind weakly
features: [generators]
es6id: 14.4
negative:
phase: parse
type: SyntaxError
description: >
`yield` expressions bind weakly
features: [generators]
es6id: 14.4
negative:
phase: parse
type: SyntaxError
---*/
$DONOTEVALUATE();

View File

@ -2,9 +2,9 @@
// 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.
es6id: 12.1.1
description: >
`yield` may be used as a literal property name in an object literal.
es6id: 12.1.1
---*/
({ yield: 1 });

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -2,14 +2,14 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
description: >
`yield` may not be used as the binding identifier of a function
expression within classes.
features: [generators]
es6id: 14.1
negative:
phase: parse
type: SyntaxError
description: >
`yield` may not be used as the binding identifier of a function
expression within classes.
features: [generators]
es6id: 14.1
negative:
phase: parse
type: SyntaxError
---*/
$DONOTEVALUATE();

View File

@ -2,11 +2,11 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
description: >
`yield` is a valid BindingIdentifier for GeneratorMethods outside of
strict mode.
features: [generators]
es6id: 12.1.1
description: >
`yield` is a valid BindingIdentifier for GeneratorMethods outside of
strict mode.
features: [generators]
es6id: 12.1.1
---*/
var iter, result;

View File

@ -2,14 +2,14 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
description: >
`yield` is a reserved keyword within normal function bodies declared
within classes.
features: [generators]
es6id: 12.1.1
negative:
phase: parse
type: SyntaxError
description: >
`yield` is a reserved keyword within normal function bodies declared
within classes.
features: [generators]
es6id: 12.1.1
negative:
phase: parse
type: SyntaxError
---*/
$DONOTEVALUATE();

View File

@ -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;

View File

@ -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();

View File

@ -2,14 +2,14 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
description: >
`yield` is a reserved keyword within generator function bodies and may
not be used as the binding identifier of a parameter.
features: [generators]
es6id: 12.1.1
negative:
phase: parse
type: SyntaxError
description: >
`yield` is a reserved keyword within generator function bodies and may
not be used as the binding identifier of a parameter.
features: [generators]
es6id: 12.1.1
negative:
phase: parse
type: SyntaxError
---*/
$DONOTEVALUATE();

View File

@ -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;

View File

@ -2,10 +2,10 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
description: >
`yield` is a valid statement within generator function bodies.
features: [generators]
es6id: 14.4
description: >
`yield` is a valid statement within generator function bodies.
features: [generators]
es6id: 14.4
---*/
var iter, result;

View File

@ -2,11 +2,11 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
description: >
`yield` expressions may be used as the right-hand-side of other `yield`
expressions.
features: [generators]
es6id: 14.4
description: >
`yield` expressions may be used as the right-hand-side of other `yield`
expressions.
features: [generators]
es6id: 14.4
---*/
var iter, result;

View File

@ -2,10 +2,10 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
description: >
Newlines terminate `yield` expressions.
features: [generators]
es6id: 14.4
description: >
Newlines terminate `yield` expressions.
features: [generators]
es6id: 14.4
---*/
var iter, result;

View File

@ -2,13 +2,13 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
description: >
A newline may not precede the `*` token in a `yield` expression.
features: [generators]
es6id: 14.4
negative:
phase: parse
type: SyntaxError
description: >
A newline may not precede the `*` token in a `yield` expression.
features: [generators]
es6id: 14.4
negative:
phase: parse
type: SyntaxError
---*/
$DONOTEVALUATE();

View File

@ -2,10 +2,10 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
description: >
The right-hand side of a `yield *` expression may appear on a new line.
features: [generators]
es6id: 14.4
description: >
The right-hand side of a `yield *` expression may appear on a new line.
features: [generators]
es6id: 14.4
---*/
var result;

View File

@ -2,13 +2,13 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
description: >
`yield` expressions bind weakly
features: [generators]
es6id: 14.4
negative:
phase: parse
type: SyntaxError
description: >
`yield` expressions bind weakly
features: [generators]
es6id: 14.4
negative:
phase: parse
type: SyntaxError
---*/
$DONOTEVALUATE();

View File

@ -2,10 +2,10 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
description: >
The method should return a valid iterator that can be traversed using a
`for...of` loop.
es6id: 22.1.3.4
description: >
The method should return a valid iterator that can be traversed using a
`for...of` loop.
es6id: 22.1.3.4
---*/
var array = [0, 'a', true, false, null, /* hole */, undefined, NaN];

View File

@ -2,10 +2,10 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
description: >
The method should return a valid iterator that can be traversed using a
`for...of` loop.
es6id: 22.1.3.13
description: >
The method should return a valid iterator that can be traversed using a
`for...of` loop.
es6id: 22.1.3.13
---*/
var array = [0, 'a', true, false, null, /* hole */, undefined, NaN];

View File

@ -2,9 +2,9 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
description: >
Array instances should be able to be traversed using a `for...of` loop.
es6id: 13.6.4
description: >
Array instances should be able to be traversed using a `for...of` loop.
es6id: 13.6.4
---*/
var array = [0, 'a', true, false, null, /* hole */, undefined, NaN];

View File

@ -2,11 +2,11 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
description: >
`yield` is not a reserved identifier in non-strict mode code and may be
used as a label.
es6id: 12.1.1
flags: [noStrict]
description: >
`yield` is not a reserved identifier in non-strict mode code and may be
used as a label.
es6id: 12.1.1
flags: [noStrict]
---*/
yield: 1;

View File

@ -2,14 +2,14 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
description: >
`yield` is a reserved identifier in strict mode code and may not be used
as a label.
es6id: 12.1.1
negative:
phase: parse
type: SyntaxError
flags: [onlyStrict]
description: >
`yield` is a reserved identifier in strict mode code and may not be used
as a label.
es6id: 12.1.1
negative:
phase: parse
type: SyntaxError
flags: [onlyStrict]
---*/
$DONOTEVALUATE();