diff --git a/.sites/template.md b/.sites/template.md index aa2746bf..0f16f542 100644 --- a/.sites/template.md +++ b/.sites/template.md @@ -1,4 +1,4 @@ -# Sites - - -#include "./.sites/_table.md" +# Sites + + +#include "./.sites/_table.md" diff --git a/scripts/core/htmlTable.ts b/scripts/core/htmlTable.ts index 9b4c63cf..72d6bd8d 100644 --- a/scripts/core/htmlTable.ts +++ b/scripts/core/htmlTable.ts @@ -16,15 +16,15 @@ export class HTMLTable { } toString() { - let output = '\n' + let output = '
\r\n' - output += ' \n ' + output += ' \r\n ' for (const column of this.columns) { output += `` } - output += '\n \n' + output += '\r\n \r\n' - output += ' \n' + output += ' \r\n' for (const item of this.data) { output += ' ' let i = 0 @@ -35,9 +35,9 @@ export class HTMLTable { output += `${item[prop]}` i++ } - output += '\n' + output += '\r\n' } - output += ' \n' + output += ' \r\n' output += '
${column.name}
' diff --git a/tests/__data__/expected/_sites.md b/tests/__data__/expected/_sites.md index efdb8b33..bd63aa62 100644 --- a/tests/__data__/expected/_sites.md +++ b/tests/__data__/expected/_sites.md @@ -1,13 +1,13 @@ -# Sites - - - - - - - - - - - -
SiteStatusNotes
iltalehti.fi🟡https://github.com/iptv-org/epg/issues/2396
indihometv.com🟢
kan.org.il🔴https://github.com/iptv-org/epg/issues/2273
+# Sites + + + + + + + + + + + +
SiteStatusNotes
iltalehti.fi🟡https://github.com/iptv-org/epg/issues/2396
indihometv.com🟢
kan.org.il🔴https://github.com/iptv-org/epg/issues/2273
diff --git a/tests/__data__/input/.sites/template.md b/tests/__data__/input/.sites/template.md index b91bd031..c630b91b 100644 --- a/tests/__data__/input/.sites/template.md +++ b/tests/__data__/input/.sites/template.md @@ -1,4 +1,4 @@ -# Sites - - -#include "tests/__data__/output/.sites/_table.md" +# Sites + + +#include "tests/__data__/output/.sites/_table.md"