Tool Tip Spacing fixed, and auto starting tutorials.

This commit is contained in:
Luis Fernando Molina committed 2021-01-12 19:28:00 +01:00
1 parent b37f7b5711
commit 1a37d64e8c
2 files changed
+15 -5

No files matched your search

@@ -124,7 +124,7 @@ function newWorkspace() {
executeAction({ name: 'Syncronize Tasks', project: 'Superalgos' })
executeAction({ name: 'Syncronize Trading Sessions', project: 'Superalgos' })
executeAction({ name: 'Syncronize Learning Sessions', project: 'Superalgos' })
//executeAction({ name: 'Play Tutorials', project: 'Superalgos' }) TODO reactivate this
executeAction({ name: 'Play Tutorials', project: 'Superalgos' })
}
function setupEventsServerClients() {
+14 -4
View File
@@ -599,6 +599,7 @@ function newSuperalgosUtilitiesDocs() {
/* Private Functions follow */
function tagDefinedTypes(text, excludedType) {
const MAX_NUMBER_OF_WORDS = 10
text = text.trim()
let cleanText = text.replace(/'/g, ' AMPERSAND ') // scaping ampersands, separating them from other words
.replaceAll('<', ' < ')
.replaceAll('>', ' > ')
@@ -615,10 +616,18 @@ function newSuperalgosUtilitiesDocs() {
let phrase = ''
for (let j = 0; j < MAX_NUMBER_OF_WORDS; j++) {
phrase = phrase + ' ' + words[i + j]
phrase = phrase.trim()
phrases.push(phrase)
cleanPhrases.push(cleanPhrase(phrase))
let word = words[i + j]
if (word === "" ) { word = " "}
if (word !== undefined) {
if (phrase === '') {
phrase = word
} else {
phrase = phrase + ' ' + word
}
if (phrase === undefined) { continue }
phrases.push(phrase)
cleanPhrases.push(cleanPhrase(phrase))
}
}
let found = false
@@ -663,6 +672,7 @@ function newSuperalgosUtilitiesDocs() {
.replaceAll(' . ', '.')
.replaceAll(' , ', ',')
.replaceAll(' ! ', '!')
.replaceAll(' ', ' ')
return taggedText
}