From b0265fd35272631b87210cd5f90693ea3a3ce60e Mon Sep 17 00:00:00 2001 From: Aleksandr Statciuk Date: Wed, 15 Dec 2021 00:19:47 +0300 Subject: [PATCH] Remove line break --- scripts/commands/update-readme.js | 8 ++++---- tests/__data__/input/readme.md | 34 +++++++++++++++---------------- 2 files changed, 21 insertions(+), 21 deletions(-) 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. CategoryChannelsPlaylist - General1https://iptv-org.github.io/iptv/categories/general.m3u - News1https://iptv-org.github.io/iptv/categories/news.m3u - Other0https://iptv-org.github.io/iptv/categories/other.m3u + General1https://iptv-org.github.io/iptv/categories/general.m3u + News1https://iptv-org.github.io/iptv/categories/news.m3u + Other0https://iptv-org.github.io/iptv/categories/other.m3u @@ -54,10 +54,10 @@ Or select one of the playlists from the list below. LanguageChannelsPlaylist - Catalan0https://iptv-org.github.io/iptv/languages/cat.m3u - English1https://iptv-org.github.io/iptv/languages/eng.m3u - Russian1https://iptv-org.github.io/iptv/languages/rus.m3u - Undefined0https://iptv-org.github.io/iptv/languages/undefined.m3u + Catalan0https://iptv-org.github.io/iptv/languages/cat.m3u + English1https://iptv-org.github.io/iptv/languages/eng.m3u + Russian1https://iptv-org.github.io/iptv/languages/rus.m3u + Undefined0https://iptv-org.github.io/iptv/languages/undefined.m3u @@ -75,11 +75,11 @@ Or select one of the playlists from the list below. RegionChannelsPlaylist - Asia1https://iptv-org.github.io/iptv/regions/asia.m3u - Commonwealth of Independent States1https://iptv-org.github.io/iptv/regions/cis.m3u - Europe2https://iptv-org.github.io/iptv/regions/eur.m3u - Europe, the Middle East and Africa2https://iptv-org.github.io/iptv/regions/emea.m3u - Undefined0https://iptv-org.github.io/iptv/regions/undefined.m3u + Asia1https://iptv-org.github.io/iptv/regions/asia.m3u + Commonwealth of Independent States1https://iptv-org.github.io/iptv/regions/cis.m3u + Europe2https://iptv-org.github.io/iptv/regions/eur.m3u + Europe, the Middle East and Africa2https://iptv-org.github.io/iptv/regions/emea.m3u + Undefined0https://iptv-org.github.io/iptv/regions/undefined.m3u @@ -97,11 +97,11 @@ Or select one of the playlists from the list below. CountryChannelsPlaylist - 🇦🇩 Andorra0https://iptv-org.github.io/iptv/countries/ad.m3u - 🇷🇺 Russia1https://iptv-org.github.io/iptv/countries/ru.m3u - 🇬🇧 United Kingdom1https://iptv-org.github.io/iptv/countries/uk.m3u - 🌍 International0https://iptv-org.github.io/iptv/countries/int.m3u - Undefined0https://iptv-org.github.io/iptv/countries/undefined.m3u + 🇦🇩 Andorra0https://iptv-org.github.io/iptv/countries/ad.m3u + 🇷🇺 Russia1https://iptv-org.github.io/iptv/countries/ru.m3u + 🇬🇧 United Kingdom1https://iptv-org.github.io/iptv/countries/uk.m3u + 🌍 International0https://iptv-org.github.io/iptv/countries/int.m3u + Undefined0https://iptv-org.github.io/iptv/countries/undefined.m3u