Skip to content

Commit 8ac75cf

Browse files
committed
More spacing fixes.
1 parent 2e1dfce commit 8ac75cf

File tree

14 files changed

+140
-140
lines changed

14 files changed

+140
-140
lines changed

mathjax3-ts/core/MmlTree/MmlNodes/mo.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ export class MmlMo extends AbstractMmlTokenNode {
143143
}
144144

145145
/**
146-
* @return{boolean} True is this mo is an accent in an munderover construction
146+
* @return {boolean} True is this mo is an accent in an munderover construction
147147
*/
148148
get isAccent() {
149149
let accent = false;
@@ -305,8 +305,8 @@ export class MmlMo extends AbstractMmlTokenNode {
305305
}
306306

307307
/**
308-
* @param{string[]} forms The three forms in the default order they are to be tested
309-
* @return{string[]} The forms in the new order, if there is an explicit form attribute
308+
* @param {string[]} forms The three forms in the default order they are to be tested
309+
* @return {string[]} The forms in the new order, if there is an explicit form attribute
310310
*/
311311
protected handleExplicitForm(forms: string[]) {
312312
if (this.attributes.isSet('form')) {

mathjax3-ts/input/tex/FindTeX.ts

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -136,9 +136,9 @@ export class FindTeX<N, T, D> extends AbstractFindMath<N, T, D> {
136136
/*
137137
* Add the needed patterns for a pair of delimiters
138138
*
139-
* @param{string[]} starts Array of starting delimiter strings
140-
* @param{Delims} delims Array of delimiter strings, as [start, end]
141-
* @param{boolean} display True if the delimiters are for display mode
139+
* @param {string[]} starts Array of starting delimiter strings
140+
* @param {Delims} delims Array of delimiter strings, as [start, end]
141+
* @param {boolean} display True if the delimiters are for display mode
142142
*/
143143
protected addPattern(starts: string[], delims: Delims, display: boolean) {
144144
let [open, close] = delims;
@@ -149,8 +149,8 @@ export class FindTeX<N, T, D> extends AbstractFindMath<N, T, D> {
149149
/*
150150
* Create the pattern for a close delimiter
151151
*
152-
* @param{string} end The end delimiter text
153-
* @return{RegExp} The regular expression for the end delimiter
152+
* @param {string} end The end delimiter text
153+
* @return {RegExp} The regular expression for the end delimiter
154154
*/
155155
protected endPattern(end: string) {
156156
return new RegExp(quotePattern(end) + '|\\\\(?:[a-zA-Z]|.)|[{}]', 'g');
@@ -161,11 +161,11 @@ export class FindTeX<N, T, D> extends AbstractFindMath<N, T, D> {
161161
* skipping braced groups, and control sequences that aren't
162162
* the close delimiter.
163163
*
164-
* @param{string} text The string being searched for the end delimiter
165-
* @param{number} n The index of the string being searched
166-
* @param{RegExpExecArray} start The result array from the start-delimiter search
167-
* @param{EndItem} end The end-delimiter data corresponding to the start delimiter
168-
* @return{ProtoItem} The proto math item for the math, if found
164+
* @param {string} text The string being searched for the end delimiter
165+
* @param {number} n The index of the string being searched
166+
* @param {RegExpExecArray} start The result array from the start-delimiter search
167+
* @param {EndItem} end The end-delimiter data corresponding to the start delimiter
168+
* @return {ProtoItem} The proto math item for the math, if found
169169
*/
170170
protected findEnd(text: string, n: number, start: RegExpExecArray, end: EndItem) {
171171
let [close, display, pattern] = end;
@@ -188,9 +188,9 @@ export class FindTeX<N, T, D> extends AbstractFindMath<N, T, D> {
188188
* Search a string for math delimited by one of the delimiter pairs,
189189
* or by \begin{env}...\end{env}, or \eqref{...}, \ref{...}, \\, or \$.
190190
*
191-
* @param{ProtoItem[]} math The array of proto math items located so far
192-
* @param{number} n The index of the string being searched
193-
* @param{string} text The string being searched
191+
* @param {ProtoItem[]} math The array of proto math items located so far
192+
* @param {number} n The index of the string being searched
193+
* @param {string} text The string being searched
194194
*/
195195
protected findMathInString(math: ProtoItem<N, T>[], n: number, text: string) {
196196
let start, match;

mathjax3-ts/util/AsyncLoad-disabled.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
*/
2323

2424
/**
25-
* @param{string} name The name of the file to load
26-
* @return{Promise} The promise that always fails (indicating file not loaded)
25+
* @param {string} name The name of the file to load
26+
* @return {Promise} The promise that always fails (indicating file not loaded)
2727
*/
2828
export function asyncLoad(name: string) {
2929
return new Promise((ok, fail) => fail());

mathjax3-ts/util/AsyncLoad.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ declare var __dirname: string;
2828
/**
2929
* Load a file asynchronously, either using System.js, or node's require().
3030
*
31-
* @param{string} name The name of the file to load
32-
* @return{Promise} The promise that is satisfied when the file is loaded
31+
* @param {string} name The name of the file to load
32+
* @return {Promise} The promise that is satisfied when the file is loaded
3333
*/
3434
export function asyncLoad(name: string) {
3535
if (name.charAt(0) === '.') {

mathjax3-ts/util/Entities.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -508,8 +508,8 @@ function replace(match: string, entity: string) {
508508
}
509509

510510
/**
511-
* @param{string} entity The character code point as a string
512-
* @return{srting} The character(s) with the given code point
511+
* @param {string} entity The character code point as a string
512+
* @return {srting} The character(s) with the given code point
513513
*/
514514
export function numeric(entity: string) {
515515
let n = (entity.charAt(0) === 'x' ?

mathjax3-ts/util/FunctionList.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ export class FunctionList extends PrioritizedList<Function> {
4242
* passing the given data to the functions. If any return
4343
* false, the list is terminated.
4444
*
45-
* @param{any[]} data The array of arguments to pass to the functions
46-
* @return{boolean} False if any function stopped the list by
45+
* @param {any[]} data The array of arguments to pass to the functions
46+
* @return {boolean} False if any function stopped the list by
4747
* returning false, true otherwise
4848
*/
4949
public execute(...data: any[]) {
@@ -67,8 +67,8 @@ export class FunctionList extends PrioritizedList<Function> {
6767
* succeeds, but passes false as its argument. Otherwise it succeeds
6868
* and passes true.
6969
*
70-
* @param{any[]} data The array of arguments to pass to the functions
71-
* @return{Promise} The promise that is satisfied when the function
70+
* @param {any[]} data The array of arguments to pass to the functions
71+
* @return {Promise} The promise that is satisfied when the function
7272
* list completes (with argument true or false
7373
* depending on whether some function returned
7474
* false or not).

mathjax3-ts/util/LinkedList.ts

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export class ListItem<DataClass> {
5757
public prev: ListItem<DataClass> = null;
5858

5959
/**
60-
* @param{any} data The data to be stored in the list item
60+
* @param {any} data The data to be stored in the list item
6161
* @constructor
6262
*/
6363
constructor (data: any = null) {
@@ -88,7 +88,7 @@ export class LinkedList<DataClass> {
8888
* item in the list, without having to handle special
8989
* cases.
9090
*
91-
* @param{DataClass[]} args The data items that form the initial list
91+
* @param {DataClass[]} args The data items that form the initial list
9292
* @constructor
9393
*/
9494
constructor(...args: DataClass[]) {
@@ -104,7 +104,7 @@ export class LinkedList<DataClass> {
104104
*
105105
* so use toArray() to convert to array, when needed
106106
*
107-
* @return{DataClass[]} The list converted to an array
107+
* @return {DataClass[]} The list converted to an array
108108
*/
109109
public toArray() {
110110
return Array.from(this) as DataClass[];
@@ -113,9 +113,9 @@ export class LinkedList<DataClass> {
113113
/**
114114
* Used for sorting and merging lists (Overridden by subclasses)
115115
*
116-
* @param{DataClass} a The first item to compare
117-
* @param{DataClass} b The second item to compare
118-
* @return{boolean} True if a is before b, false otherwise
116+
* @param {DataClass} a The first item to compare
117+
* @param {DataClass} b The second item to compare
118+
* @return {boolean} True if a is before b, false otherwise
119119
*/
120120
public isBefore(a: DataClass, b: DataClass) {
121121
return (a < b);
@@ -124,8 +124,8 @@ export class LinkedList<DataClass> {
124124
/**
125125
* Push items on the end of the list
126126
*
127-
* @param{DataClass[]} args The list of data items to be pushed
128-
* @return{LinkedList} The LinkedList object (for chaining)
127+
* @param {DataClass[]} args The list of data items to be pushed
128+
* @return {LinkedList} The LinkedList object (for chaining)
129129
*/
130130
public push(...args: DataClass[]) {
131131
for (const data of args) {
@@ -141,7 +141,7 @@ export class LinkedList<DataClass> {
141141
/**
142142
* Pop the end item off the list and return its data
143143
*
144-
* @return{DataClass} The data from the last item in the list
144+
* @return {DataClass} The data from the last item in the list
145145
*/
146146
public pop(): DataClass {
147147
let item = this.list.prev;
@@ -157,8 +157,8 @@ export class LinkedList<DataClass> {
157157
/**
158158
* Push items at the head of the list
159159
*
160-
* @param{DataClass[]} args The list of data items to inserted
161-
* @return{LinkedList} The LinkedList object (for chaining)
160+
* @param {DataClass[]} args The list of data items to inserted
161+
* @return {LinkedList} The LinkedList object (for chaining)
162162
*/
163163
public unshift(...args: DataClass[]) {
164164
for (const data of args.slice(0).reverse()) {
@@ -174,7 +174,7 @@ export class LinkedList<DataClass> {
174174
/**
175175
* Remove an item from the head of the list and return its data
176176
*
177-
* @return{DataClass} The data from the first item in the list
177+
* @return {DataClass} The data from the first item in the list
178178
*/
179179
public shift(): DataClass {
180180
let item = this.list.next;
@@ -190,7 +190,7 @@ export class LinkedList<DataClass> {
190190
/**
191191
* Empty the list
192192
*
193-
* @return{LinkedList} The LinkedList object (for chaining)
193+
* @return {LinkedList} The LinkedList object (for chaining)
194194
*/
195195
public clear() {
196196
this.list.next.prev = this.list.prev.next = null;
@@ -201,7 +201,7 @@ export class LinkedList<DataClass> {
201201
/**
202202
* Make the list iterable and return the data from the items in the list
203203
*
204-
* @return{{next: Function}} The object containing the iterator's next() function
204+
* @return {{next: Function}} The object containing the iterator's next() function
205205
*/
206206
public [Symbol.iterator](): Iterator<DataClass> {
207207
let current = this.list;
@@ -218,7 +218,7 @@ export class LinkedList<DataClass> {
218218
/**
219219
* An iterator for the list in reverse order
220220
*
221-
* @return{Object} The iterator for walking the list in reverse
221+
* @return {Object} The iterator for walking the list in reverse
222222
*/
223223
public reversed() {
224224
let current = this.list;
@@ -241,9 +241,9 @@ export class LinkedList<DataClass> {
241241
/**
242242
* Insert a new item into a sorted list in the correct locations
243243
*
244-
* @param{DataClass} data The data item to add
245-
* @param{SortFn} isBefore The function used to order the data
246-
* @param{LinkedList} The LinkedList object (for chaining)
244+
* @param {DataClass} data The data item to add
245+
* @param {SortFn} isBefore The function used to order the data
246+
* @param {LinkedList} The LinkedList object (for chaining)
247247
*/
248248
public insert(data: DataClass, isBefore: SortFn<DataClass> = null) {
249249
if (isBefore === null) {
@@ -263,8 +263,8 @@ export class LinkedList<DataClass> {
263263
/**
264264
* Sort the list using an optional sort function
265265
*
266-
* @param{SortFn} isBefore The function used to order the data
267-
* @return{LinkedList} The LinkedList object (for chaining)
266+
* @param {SortFn} isBefore The function used to order the data
267+
* @return {LinkedList} The LinkedList object (for chaining)
268268
*/
269269
public sort(isBefore: SortFn<DataClass> = null) {
270270
if (isBefore === null) {
@@ -302,9 +302,9 @@ export class LinkedList<DataClass> {
302302
/**
303303
* Merge a sorted list with another sorted list
304304
*
305-
* @param{LinkedList} list The list to merge into this instance's list
306-
* @param{SortFn} isBefore The function used to order the data
307-
* @return{LinkedList} The LinkedList instance (for chaining)
305+
* @param {LinkedList} list The list to merge into this instance's list
306+
* @param {SortFn} isBefore The function used to order the data
307+
* @return {LinkedList} The LinkedList instance (for chaining)
308308
*/
309309
public merge(list: LinkedList<DataClass>, isBefore: SortFn<DataClass> = null) {
310310
if (isBefore === null) {

mathjax3-ts/util/Options.ts

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ export function makeArray(x: any): any[] {
6565
/**
6666
* Get all keys and symbols from an object
6767
*
68-
* @param{Optionlist} def The object whose keys are to be returned
69-
* @return{(string | symbol)[]} The list of keys for the object
68+
* @param {Optionlist} def The object whose keys are to be returned
69+
* @return {(string | symbol)[]} The list of keys for the object
7070
*/
7171
export function keys(def: OptionList) {
7272
if (!def) {
@@ -79,8 +79,8 @@ export function keys(def: OptionList) {
7979
/**
8080
* Make a deep copy of an object
8181
*
82-
* @param{OptionList} def The object to be copied
83-
* @return{OptionList} The copy of the object
82+
* @param {OptionList} def The object to be copied
83+
* @return {OptionList} The copy of the object
8484
*/
8585
export function copy(def: OptionList): OptionList {
8686
let props: OptionList = {};
@@ -104,10 +104,10 @@ export function copy(def: OptionList): OptionList {
104104
* Insert one object into another (with optional warnings about
105105
* keys that aren't in the original)
106106
*
107-
* @param{OptionList} dst The option list to merge into
108-
* @param{OptionList} src The options to be merged
109-
* @param{boolean} warn True if a warning shoudl be issued for a src option that isn't already in dst
110-
* @return{OptionList} The modified destination option list (dst)
107+
* @param {OptionList} dst The option list to merge into
108+
* @param {OptionList} src The options to be merged
109+
* @param {boolean} warn True if a warning shoudl be issued for a src option that isn't already in dst
110+
* @return {OptionList} The modified destination option list (dst)
111111
*/
112112
export function insert(dst: OptionList, src: OptionList, warn: boolean = true) {
113113
for (let key of keys(src)) {
@@ -142,9 +142,9 @@ export function insert(dst: OptionList, src: OptionList, warn: boolean = true) {
142142
* Merge options without warnings (so we can add new default values into an
143143
* existing default list)
144144
*
145-
* @param{OptionList} options The option list to be merged into
146-
* @param{OptionList[]} defs The option lists to merge into the first one
147-
* @return{OptionList} The modified options list
145+
* @param {OptionList} options The option list to be merged into
146+
* @param {OptionList[]} defs The option lists to merge into the first one
147+
* @return {OptionList} The modified options list
148148
*/
149149
export function defaultOptions(options: OptionList, ...defs: OptionList[]) {
150150
defs.forEach(def => insert(options, def, false));
@@ -156,9 +156,9 @@ export function defaultOptions(options: OptionList, ...defs: OptionList[]) {
156156
* Merge options with warnings about undefined ones (so we can merge
157157
* user options into the default list)
158158
*
159-
* @param{OptionList} options The option list to be merged into
160-
* @param{OptionList[]} defs The option lists to merge into the first one
161-
* @return{OptionList} The modified options list
159+
* @param {OptionList} options The option list to be merged into
160+
* @param {OptionList[]} defs The option lists to merge into the first one
161+
* @return {OptionList} The modified options list
162162
*/
163163
export function userOptions(options: OptionList, ...defs: OptionList[]) {
164164
defs.forEach(def => insert(options, def, true));
@@ -169,9 +169,9 @@ export function userOptions(options: OptionList, ...defs: OptionList[]) {
169169
/**
170170
* Select a subset of options by key name
171171
*
172-
* @param{OptionList} options The option list from which option values will be taken
173-
* @param{string[]} keys The names of the options to extract
174-
* @return{OptionList} The option list consisting of only the ones whose keys were given
172+
* @param {OptionList} options The option list from which option values will be taken
173+
* @param {string[]} keys The names of the options to extract
174+
* @return {OptionList} The option list consisting of only the ones whose keys were given
175175
*/
176176
export function selectOptions(options: OptionList, ...keys: string[]) {
177177
let subset: OptionList = {};
@@ -187,9 +187,9 @@ export function selectOptions(options: OptionList, ...keys: string[]) {
187187
/**
188188
* Select a subset of options by keys from an object
189189
*
190-
* @param{OptionList} options The option list from which the option values will be taken
191-
* @param{OptionList} object The option list whose keys will be used to select the options
192-
* @return{OptionList} The option list consisting of the option values from the first
190+
* @param {OptionList} options The option list from which the option values will be taken
191+
* @param {OptionList} object The option list whose keys will be used to select the options
192+
* @return {OptionList} The option list consisting of the option values from the first
193193
* list whose keys are those from the second list.
194194
*/
195195
export function selectOptionsFromKeys(options: OptionList, object: OptionList) {
@@ -203,10 +203,10 @@ export function selectOptionsFromKeys(options: OptionList, object: OptionList) {
203203
* (Used to separate an option list into the options needed for several
204204
* subobjects.)
205205
*
206-
* @param{OptionList} options The option list to be split into parts
207-
* @param{OptionList[]} objects The list of option lists whose keys are used to break up
206+
* @param {OptionList} options The option list to be split into parts
207+
* @param {OptionList[]} objects The list of option lists whose keys are used to break up
208208
* the original options into separate pieces.
209-
* @return{OptionList[]} The option lists taken from the original based on the
209+
* @return {OptionList[]} The option lists taken from the original based on the
210210
* keys of the other objects. The first one in the list
211211
* consists of the values not appearing in any of the others
212212
* (i.e., whose keys were not in any of the others).

0 commit comments

Comments
 (0)