diff --git a/script/data-harmonizer/index.js b/script/data-harmonizer/index.js index 4be0abe6..0e52c4bd 100644 --- a/script/data-harmonizer/index.js +++ b/script/data-harmonizer/index.js @@ -387,7 +387,7 @@ let DataHarmonizer = { */ renderReference: function(mystyle = null) { - schema_template = this.schema['specifications'][this.template_name] + let schema_template = this.schema['specifications'][this.template_name] let style = ` body { @@ -419,12 +419,14 @@ let DataHarmonizer = { table td {vertical-align: top; padding:5px;} table td.label {font-weight:bold;} + + ul { padding: 0; } `; if (mystyle != null) - style == mystyle; + style = mystyle; - row_html = ''; + let row_html = ''; for (section of this.template) { row_html += @@ -434,7 +436,7 @@ let DataHarmonizer = { ` for (slot of section.children) { - slot_dict = this.getCommentDict(slot); + const slot_dict = this.getCommentDict(slot); row_html += `
' + paragraph + '
'; }) @@ -1367,7 +1373,7 @@ let DataHarmonizer = { for (const [key, item] of Object.entries(field.examples)) { if (item.value.trim().length > 0) { examples.push(item.value); - } + } } guide.examples = '