diff --git a/scripts/commands/update-readme.js b/scripts/commands/update-readme.js index 2cef7ac23..6cc0f6358 100644 --- a/scripts/commands/update-readme.js +++ b/scripts/commands/update-readme.js @@ -41,7 +41,7 @@ async function generateCategoryTable() { const table = markdown.createTable(rows, [ { name: 'Category', align: 'left' }, { name: 'Channels', align: 'right' }, - { name: 'Playlist', align: 'left' } + { name: 'Playlist', align: 'left', nowrap: true } ]) await file.create('./.readme/_categories.md', table) @@ -65,7 +65,7 @@ async function generateCountryTable() { const table = markdown.createTable(rows, [ { name: 'Country', align: 'left' }, { name: 'Channels', align: 'right' }, - { name: 'Playlist', align: 'left' } + { name: 'Playlist', align: 'left', nowrap: true } ]) await file.create('./.readme/_countries.md', table) @@ -86,7 +86,7 @@ async function generateRegionTable() { const table = markdown.createTable(rows, [ { name: 'Region', align: 'left' }, { name: 'Channels', align: 'right' }, - { name: 'Playlist', align: 'left' } + { name: 'Playlist', align: 'left', nowrap: true } ]) await file.create('./.readme/_regions.md', table) @@ -107,7 +107,7 @@ async function generateLanguageTable() { const table = markdown.createTable(rows, [ { name: 'Language', align: 'left' }, { name: 'Channels', align: 'right' }, - { name: 'Playlist', align: 'left' } + { name: 'Playlist', align: 'left', nowrap: true } ]) await file.create('./.readme/_languages.md', table) diff --git a/tests/__data__/input/readme.md b/tests/__data__/input/readme.md index 9ba2befb9..06ee56f26 100644 --- a/tests/__data__/input/readme.md +++ b/tests/__data__/input/readme.md @@ -34,9 +34,9 @@ Or select one of the playlists from the list below.
https://iptv-org.github.io/iptv/categories/general.m3u
https://iptv-org.github.io/iptv/categories/news.m3u
https://iptv-org.github.io/iptv/categories/other.m3u
https://iptv-org.github.io/iptv/categories/general.m3u
https://iptv-org.github.io/iptv/categories/news.m3u
https://iptv-org.github.io/iptv/categories/other.m3u
https://iptv-org.github.io/iptv/languages/cat.m3u
https://iptv-org.github.io/iptv/languages/eng.m3u
https://iptv-org.github.io/iptv/languages/rus.m3u
https://iptv-org.github.io/iptv/languages/undefined.m3u
https://iptv-org.github.io/iptv/languages/cat.m3u
https://iptv-org.github.io/iptv/languages/eng.m3u
https://iptv-org.github.io/iptv/languages/rus.m3u
https://iptv-org.github.io/iptv/languages/undefined.m3u
https://iptv-org.github.io/iptv/regions/asia.m3u
https://iptv-org.github.io/iptv/regions/cis.m3u
https://iptv-org.github.io/iptv/regions/eur.m3u
https://iptv-org.github.io/iptv/regions/emea.m3u
https://iptv-org.github.io/iptv/regions/undefined.m3u
https://iptv-org.github.io/iptv/regions/asia.m3u
https://iptv-org.github.io/iptv/regions/cis.m3u
https://iptv-org.github.io/iptv/regions/eur.m3u
https://iptv-org.github.io/iptv/regions/emea.m3u
https://iptv-org.github.io/iptv/regions/undefined.m3u
https://iptv-org.github.io/iptv/countries/ad.m3u
https://iptv-org.github.io/iptv/countries/ru.m3u
https://iptv-org.github.io/iptv/countries/uk.m3u
https://iptv-org.github.io/iptv/countries/int.m3u
https://iptv-org.github.io/iptv/countries/undefined.m3u
https://iptv-org.github.io/iptv/countries/ad.m3u
https://iptv-org.github.io/iptv/countries/ru.m3u
https://iptv-org.github.io/iptv/countries/uk.m3u
https://iptv-org.github.io/iptv/countries/int.m3u
https://iptv-org.github.io/iptv/countries/undefined.m3u